/* ═══════════════════════════════════════════════════════
   02-layout.css — AJG AI Solutions
   Page structure, section containers, inner wrappers
   ═══════════════════════════════════════════════════════ */

.page {
  position: relative;
  z-index: 2;
  width: 100%;
}

section {
  width: 100%;
  box-sizing: border-box;
}

section > .inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

section > div:not([class]):not([style*="position:absolute"]):not([style*="z-index:0"]) {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.section {
  padding: 80px 2rem 60px;
  position: relative;
  z-index: 1;
}

/* ── Header / Nav ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2rem 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(34,120,255,.35)) drop-shadow(0 0 22px rgba(6,182,212,.20));
}
.brand-copy .name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-copy .sub {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Nav pill ── */
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 22px;
}
nav a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
nav a:hover { color: #fff; }

/* ── Top CTA ── */
.top-cta {
  text-decoration: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #38bdf8;
  color: #050816;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(56,189,248,.22);
  transition: .3s ease;
}
.top-cta:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56,189,248,.32);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ── Hamburger button ── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  flex: 0 0 auto;
  transition: .25s ease;
}
.menu-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.80);
  transition: .25s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,22,.72);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #091122;
  border-left: 1px solid rgba(255,255,255,.10);
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.mobile-nav.open {
  pointer-events: auto;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.mobile-nav-close button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: .2s ease;
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: #fff;
}
.mobile-nav .mobile-nav-cta {
  margin-top: 16px;
  display: block;
  overflow: hidden;
  text-align: center;
  padding: 16px 24px;
  border-radius: 999px;
  background: #38bdf8;
  color: #050816;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(56,189,248,.28);
  border: none;
}

/* ── Section separator ── */
.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  margin: 0;
  border: none;
}

/* Prose width helpers */
.prose-lg { max-width: 760px; }
.prose-md { max-width: 560px; }
.prose-sm { max-width: 520px; }
.section-copy {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}
