/* PolyBase AI — enterprise site styles.
   Shared by every page. Layout follows a consulting-site pattern:
   quiet header, centered headline, full-bleed imagery, legal footer. */

:root {
  --ink: #14171c;
  --muted: #4c5563;
  --soft: #6b7280;
  --line: #e4e7ec;
  --paper: #ffffff;
  --sand: #f5f6f8;
  --navy: #10233f;
  --navy-2: #1b3358;
  --accent: #b45309;
  --focus: #1d4ed8;
  --header: 72px;
  --wrap: 1120px;
  --font: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-2);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.logo svg {
  display: block;
}

.logo span {
  font-weight: 650;
  color: var(--accent);
  margin-left: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-btn,
.nav-link,
.nav-cta {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 2px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn svg {
  transition: transform 0.15s ease;
}

.nav-item.is-open .nav-btn svg,
.nav-item:hover .nav-btn svg {
  transform: rotate(180deg);
}

.nav-link.is-active,
.nav-btn.is-active {
  color: var(--navy);
}

.nav-cta {
  margin-left: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
}

.nav-cta:hover {
  background: var(--navy-2);
  color: #fff;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(16, 35, 63, 0.08);
  display: none;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 2px;
}

.dropdown a strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.dropdown a small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.dropdown a:hover {
  background: var(--sand);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Hero and section rhythm */

.hero {
  padding: 72px 0 28px;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

h3 {
  font-size: 22px;
}

.lede {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-media {
  width: 100%;
  height: min(52vw, 480px);
  object-fit: cover;
  background: var(--sand);
}

.page-intro {
  padding-bottom: 8px;
}

.subnav {
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.subnav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  overflow-x: auto;
}

.subnav a {
  display: inline-block;
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--sand);
}

.section-follow {
  padding-top: 12px;
}

.stack {
  margin-top: 16px;
}

.logo.on-dark {
  color: #fff;
}

.section p {
  color: var(--muted);
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.prose {
  color: var(--muted);
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  height: 100%;
}

.card .index {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 15.5px;
}

.card a.more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.card a.more:hover {
  text-decoration: underline;
}

.media-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.media-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.media-card div {
  padding: 20px 22px 22px;
}

.media-card p {
  margin: 0;
  font-size: 15px;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  border-top: 2px solid var(--navy);
  padding-top: 16px;
}

.step strong {
  display: block;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 15px;
}

.note {
  border-left: 3px solid var(--navy);
  background: var(--sand);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 15px;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.btn.dark {
  background: var(--navy);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Contact */

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid #cfd5de;
  border-radius: 2px;
  padding: 12px 12px;
  background: #fff;
  width: 100%;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-help,
.form-status {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.form-status {
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #bbf7d0;
  padding: 12px 14px;
}

.field-error {
  color: #9f1239;
  font-size: 13px;
  font-weight: 600;
}

/* Legal */

.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
  text-align: left;
}

.legal .updated {
  color: var(--soft);
  font-size: 14px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 32px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 22px;
}

/* Footer */

.site-footer {
  background: #121417;
  color: #d5d8de;
  padding: 56px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer a {
  color: #d5d8de;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer h2 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-brand p {
  color: #a7adb8;
  max-width: 280px;
}

.footer-base {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #2a2e35;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9aa1ab;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Cookie notice — essential acknowledgement only */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin-inline: auto;
}

.cookie-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cookie-bar button {
  flex: none;
}

@media (max-width: 980px) {
  .grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    min-width: 0;
  }

  .nav-item.is-open .dropdown {
    display: block;
  }

  .nav-item:hover .dropdown {
    display: none;
  }

  .nav-item.is-open:hover .dropdown {
    display: block;
  }

  .nav-cta {
    margin: 8px 12px 0;
    text-align: center;
  }

  .grid-4,
  .grid-2,
  .steps,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .nav-btn svg {
    transform: none;
    transition: none;
  }
}
