/* ===== Layout (structure-only) ===== */

/* Page wrappers */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--s3), 2vw, var(--s5));
}

/* Sections */
section {
  padding: clamp(var(--s7), 8vw, var(--s8)) 0;
}
section:first-of-type { border-top: 0 }

/* Responsive visibility helpers */
@media (max-width: 980px){ .hide-img-md { display: none !important; } }
@media (max-width: 680px){ .hide-img-sm { display: none !important; } }

/* Core grid systems (structure; visual parts live in global.css) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}
.grid-fluid > * { height: 100%; }

@media (max-width: 980px){ .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px){ .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Hero layout shell */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(var(--s7), 8vw, var(--s9)) 0 var(--s8);
  overflow: hidden;
  background: linear-gradient(180deg, #f0f7f4, #d4e9df);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(var(--s5), 4vw, var(--s7));
  align-items: center;
}
@media (max-width: 980px){ .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px){
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .iso-stage { min-height: 220px; display: none; }
  #heroImage { height: 220px; object-fit: cover; }
}

/* Footer layout */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: var(--grid-gap);
}
@media (max-width: 860px){ .footer-inner { grid-template-columns: 1fr; } }
.footer-legal { margin-top: var(--s5); text-align: center; }

/* Floating nav positioning (structure only; visuals in nav.css) */
.floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9999;
  opacity: 0;
}
.floating-nav.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 680px){
  .floating-nav { left: 50%; right: auto; width: calc(100% - 20px); top: 10px; }
  .floating-nav.mobile-only {
    position: fixed; left: 50%; top: 12px;
    transform: translateX(-50%) translateY(-90%); opacity: 0;
  }
  .floating-nav.mobile-only.show { transform: translateX(-50%) translateY(0); opacity: 1; }
}
