/* ABS Group corporate site — northern steel / glacial teal */

:root {
  --bg: #eef3f5;
  --bg-elevated: #f7fafb;
  --surface: #ffffff;
  --ink: #0f2a33;
  --text: #1a3540;
  --text-muted: #4d6670;
  --accent: #1f8a8a;
  --accent-deep: #0b3d4a;
  --accent-soft: rgba(31, 138, 138, 0.12);
  --line: rgba(15, 42, 51, 0.12);
  --steel: #6b8590;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --narrow: 720px;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 245, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 251, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1;
}

.brand:hover {
  color: var(--ink);
  opacity: 0.88;
}

.brand-logo {
  display: block;
  height: 4.15rem;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
  padding-top: 0.1rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 0.3rem 0;
  background: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(31, 138, 138, 0.45);
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent-soft);
}

/* Hero — full-bleed composition */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  color: #f4fafb;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 72% 28%, rgba(126, 184, 196, 0.55), transparent 60%),
    radial-gradient(ellipse 40% 50% at 18% 70%, rgba(31, 138, 138, 0.28), transparent 55%),
    linear-gradient(160deg, #0b3d4a 0%, #14505c 38%, #1a6a72 68%, #0f2a33 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 61, 74, 0.2) 0%, rgba(11, 61, 74, 0.45) 48%, rgba(11, 61, 74, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 42, 51, 0.75) 0%, rgba(15, 42, 51, 0.25) 55%, transparent 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  animation: heroDrift 20s var(--ease) infinite alternate;
}

.hero-art .route {
  stroke-dashoffset: 0;
  animation: routePulse 6s linear infinite;
}

.hero-art .node {
  transform-origin: center;
  animation: nodeGlow 3.2s var(--ease) infinite alternate;
}

.hero-art .node-b { animation-delay: 0.4s; }
.hero-art .node-c { animation-delay: 0.8s; }
.hero-art .node-d { animation-delay: 1.2s; }

@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes routePulse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -40; }
}

@keyframes nodeGlow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Keep the container full-width; constrain copy, not the box (avoids centering). */
.hero-inner > * {
  max-width: 38rem;
}

.brand-hero {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fd4d0;
  animation: brandIn 1s var(--ease) both;
}

.hero h1 {
  color: #f4fafb;
  animation: brandIn 1s var(--ease) 0.12s both;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: rgba(232, 242, 245, 0.88);
  animation: brandIn 1s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: brandIn 1s var(--ease) 0.32s both;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: #8fd4d0;
  color: var(--accent-deep);
}

.btn-primary:hover {
  background: #b7e6e2;
  color: var(--accent-deep);
}

.btn-ghost {
  border-color: rgba(244, 250, 251, 0.35);
  color: #f4fafb;
}

.btn-ghost:hover {
  border-color: #8fd4d0;
  color: #8fd4d0;
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  font-size: 1.125rem;
}

.cap-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cap-list > li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.cap-list > li:hover {
  background: rgba(31, 138, 138, 0.04);
}

.cap-index {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel);
  padding-top: 0.2rem;
}

.cap-list p {
  margin: 0;
}

.presence-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.presence-row li {
  padding: 1.35rem 0 0;
  border-top: 2px solid var(--accent);
}

.presence-row strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.presence-row span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.sector-grid li {
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 0 var(--line);
}

.sector-grid strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.sector-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.standards-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.standards-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.standards-lead {
  margin: 0 0 2rem;
  max-width: 46rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.standards-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.standards-group-wide {
  grid-column: 1 / -1;
}

.standards-group h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.standards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.standards-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(31, 138, 138, 0.35);
}

.standards-list strong {
  display: inline;
  color: var(--ink);
  font-size: 0.98rem;
}

.standards-list span {
  display: inline;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.standards-list-inline {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}

.standards-note {
  margin: 2rem 0 0;
  max-width: 46rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--steel);
}

.pillars {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillars li {
  padding-left: 1rem;
  border-left: 2px solid rgba(31, 138, 138, 0.55);
  color: var(--text-muted);
}

.pillars strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.section-contact {
  background:
    radial-gradient(ellipse 55% 50% at 15% 0%, rgba(31, 138, 138, 0.14), transparent 60%),
    var(--bg);
}

.contact-line {
  font-size: 1.45rem;
  margin: 1.5rem 0 0.75rem;
}

.contact-line a {
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 138, 138, 0.5);
  font-weight: 600;
}

.contact-line a:hover {
  color: var(--accent);
}

.contact-note {
  font-size: 0.95rem;
}

.contact-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #e4ecef;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.footer-meta,
.footer-copy {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal pages */

.page-main {
  padding: 4rem 0 5rem;
}

.page-main h1 {
  margin-bottom: 0.75rem;
}

.page-main h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.page-main strong {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.legal-meta {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--steel);
}

.legal-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-list li {
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  padding-left: 0.25rem;
}

.legal-list strong {
  color: var(--ink);
}

.legal-nav {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Responsive */

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .header-inner {
    position: relative;
    justify-content: flex-end;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 0;
    z-index: 1;
  }

  .brand-text {
    display: none;
  }

  .brand-logo {
    height: 3.55rem;
  }

  .nav {
    position: relative;
    z-index: 2;
  }

  .presence-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .standards-groups {
    grid-template-columns: 1fr;
  }

  .standards-list-inline {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 14rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 42, 51, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li {
    display: block;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0.85rem;
    line-height: 1.3;
  }

  .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 560px) {
  .presence-row {
    grid-template-columns: 1fr;
  }

  .cap-list > li {
    grid-template-columns: 3rem 1fr;
    gap: 0.85rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }
}
