/* =========================================================
   PrimeLogic AI — Design tokens
   Colors sampled from the PrimeLogic AI logo: deep navy
   background, bright blue accent, lighter blue for hover /
   secondary highlights, light gray/white for body text.
   ========================================================= */
:root {
  --bg-dark: #001028;
  --accent-blue: #0196f1;
  --accent-blue-light: #28aef6;
  --text-light: #e8edf4;
  --white: #ffffff;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);

  --font-sans: 'Segoe UI', Arial, sans-serif;

  --max-width: 1120px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-blue); }
.brand-name .accent { color: var(--accent-blue-light); }

/* =========================================================
   Accessibility: skip link + focus states
   ========================================================= */
.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 1000;
  background: var(--accent-blue);
  color: var(--bg-dark);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-blue-light);
  outline-offset: 2px;
}

/* =========================================================
   Shared two-tone divider
   ========================================================= */
.divider {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent-blue-light) 0 50%, var(--accent-blue) 50% 100%);
  box-shadow: 0 0 0 2px var(--bg-dark);
}
.about-text .divider { margin: 16px 0 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-dark);
  border: 3px solid var(--accent-blue-light);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}
.btn-ghost:hover { background: rgba(1, 150, 241, 0.12); border-color: var(--accent-blue-light); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 4px solid var(--accent-blue);
  box-shadow: 0 4px 0 0 var(--accent-blue-light);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 40px;
  width: auto;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.01em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { border-color: var(--accent-blue); background: rgba(1, 150, 241, 0.12); }
.nav-cta { padding: 10px 20px; margin-left: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--accent-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 100px;
  background: var(--bg-dark);
  border-bottom: 6px solid var(--accent-blue);
  box-shadow: 0 6px 0 0 var(--accent-blue-light);
}
.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo-card {
  background: var(--white);
  border-radius: 30px;
  padding: 32px 44px;
  margin-bottom: 56px;
  max-width: 590px;
  width: 90%;
  box-sizing: border-box;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}
.eyebrow {
  color: var(--accent-blue-light);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}
.hero-title {
  width: 100%;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--accent-blue);
  margin-bottom: 24px;
}
.hero-sub {
  width: 100%;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  width: 100%;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   Section shared
   ========================================================= */
.section { padding: 80px 0; background: var(--bg-dark); }
.section-heading {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--accent-blue);
  margin: 8px 0 16px;
}
.section-lead {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--bg-dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-dark);
  border: 3px solid var(--accent-blue);
  box-shadow: inset 0 0 0 2px var(--accent-blue-light);
  border-radius: 46px / 30px;
  padding: 32px 26px;
  transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  color: var(--accent-blue);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.service-card p a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
}
.service-card p a:hover {
  color: var(--accent-blue-light);
}

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-dark); }
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-inner > * { min-width: 0; }
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--accent-blue);
  margin: 8px 0 0;
}
.about-text p { color: var(--text-light); margin: 20px 0 16px; }
.about-points { margin-top: 24px; display: grid; gap: 12px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}
.about-points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--bg-dark);
  font-weight: 800;
  border: 2px solid var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-dark);
  border: 3px solid var(--accent-blue);
  box-shadow: inset 0 0 0 2px var(--accent-blue-light);
  border-radius: 46px / 30px;
  padding: 40px;
}
.about-logo { max-width: 320px; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--bg-dark); }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-heading { margin-bottom: 40px; }
.contact-phone {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-light);
}
.contact-phone a {
  color: var(--accent-blue);
  font-weight: 700;
  transition: color 0.15s ease;
}
.contact-phone a:hover { color: var(--accent-blue-light); }
.contact-form {
  background: var(--bg-dark);
  border: 3px solid var(--accent-blue);
  box-shadow: inset 0 0 0 2px var(--accent-blue-light);
  border-radius: 50px / 32px;
  padding: 40px;
}
.hidden-field { position: absolute; left: -9999px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-required-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.required-mark { color: var(--accent-blue-light); }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-blue);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { border-radius: 24px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 2px var(--accent-blue);
}
.contact-form .btn { width: 100%; margin-top: 8px; }

.form-success {
  background: var(--bg-dark);
  border: 3px solid var(--accent-blue-light);
  box-shadow: 0 0 0 3px var(--accent-blue);
  border-radius: 50px / 32px;
  padding: 40px;
  text-align: center;
}
.form-success h3 { color: var(--accent-blue); margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-dark);
  border-top: 4px solid var(--accent-blue);
  box-shadow: 0 -4px 0 0 var(--accent-blue-light);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-logo { height: 36px; margin-bottom: 12px; }
.footer-tagline { color: var(--text-light); font-size: 0.9rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links h3, .footer-contact h3 {
  color: var(--accent-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-links a, .footer-contact a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-blue); }
.footer-bottom {
  border-top: 1px solid rgba(1, 150, 241, 0.15);
  padding: 20px 0;
}
.footer-bottom p {
  color: var(--text-light);
  opacity: 0.7;
  font-size: 0.85rem;
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@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;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 4px solid var(--accent-blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(1, 150, 241, 0.15);
    border-radius: 0;
  }
  .nav-menu .nav-link:hover { background: none; }
  .nav-cta { margin-top: 16px; margin-left: 0; text-align: center; justify-content: center; }

  .hero { padding: 64px 0 64px; }
  .hero-logo-card { padding: 24px 30px; margin-bottom: 40px; max-width: 410px; width: 92%; }
  .section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; border-radius: 34px; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 24px 32px; }
}
