/* ============================================================
   Duke's Docks — Global Layout & Responsive Scaffolding
   Loaded after tokens.css and components.css
   ============================================================ */

/* ---- LAYOUT UTILITIES ---- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.stack-sm > * + * { margin-top: var(--space-5); }
.stack > * + * { margin-top: var(--space-7); }
.center-text { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* measure helpers */
.measure-copy { max-width: var(--measure-copy); }
.measure-head { max-width: var(--measure-head); }

/* ---- SECTION RHYTHM ---- */
.section-lg { padding: var(--section-y-lg) 0; }
.section-flush { padding: 0; }

/* ---- PAGE SCAFFOLDING ---- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* ---- FOCUS / A11Y HELPERS ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---- RESPONSIVE TYPOGRAPHY TWEAKS ---- */
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 48px var(--gutter) 44px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .cta-band { padding: 56px 0; }
  .pull { padding: 64px 0; }
}

/* ---- TABLET ADJUSTMENTS ---- */
@media (max-width: 980px) and (min-width: 561px) {
  .trust-item .stat { font-size: 1.35rem; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .svc-card:hover,
  .btn-cedar:hover { transform: none; }
}

/* ---- PRINT ---- */
@media print {
  .concept-tag,
  header.site,
  .cta-band,
  footer,
  .nav-toggle { display: none !important; }
  body { display: block; }
  .hero, .section, .trust { background: #fff !important; color: #000 !important; }
}
