/* ==========================================================================
   OpAnalytx — site styles
   Breakpoints: 991px (tablet), 767px (mobile landscape), 479px (mobile)
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* Montserrat variable font (SIL Open Font License) */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-normal-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-normal-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */

:root {
  --midnight-blue: #110b54;
  --footer-navy: #050136;
  --dark-slate-blue: #38327c;
  --light-slate-grey: #878cbd;
  --ghost-white: #e7e8f3;
  --ghost-white-2: #f4f5fd;
  --snow: #fff5f3;
  --salmon: #ff7d6b;
  --light-pink: #ffbcb2;
  --tomato: #fe464e;
  --crimson: #d83138;
  --text: #333;
  --text-muted: #666;

  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Montserrat", sans-serif;

  --gutter: 3%;
  --container: 1100px;
  --card-shadow: 38px 38px 74px rgba(56, 50, 124, 0.06);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--dark-slate-blue);
  font-family: var(--font-display);
  font-weight: 700;
}

h1,
h2 {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

h4 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

p + p {
  margin-top: 1.6em;
}

a {
  color: var(--salmon);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.container-tight {
  width: 100%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-solid {
  padding: 20px 35px;
  background-color: var(--tomato);
  color: #fff;
}

.btn-solid:hover {
  background-color: var(--crimson);
}

.btn-outline {
  border-color: var(--tomato);
  background-color: transparent;
  color: var(--crimson);
}

.btn-outline:hover {
  border-color: var(--crimson);
  background-color: var(--crimson);
  color: var(--snow);
}

/* ---------- Navigation ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 95px;
  padding: 0 var(--gutter);
}

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
}

.nav-logo img {
  width: 200px;
}

.nav-toggle {
  display: none;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, background-color 0.3s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 20px 25px;
  color: var(--ghost-white);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.35s;
}

.nav-link:hover {
  color: rgba(231, 232, 243, 0.5);
}

.nav-link-contact {
  display: none;
}

.nav-cta {
  margin-left: 25px;
  border-color: var(--snow);
  color: var(--snow);
}

.nav-cta:hover {
  background-color: var(--snow);
  color: var(--crimson);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 800px;
  padding: 152px var(--gutter) 182px;
  overflow: hidden;
}

/* Animated brand gradient (replaces the original Lottie animation) */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to left,
    #ff6a43 0%,
    #fe5848 9.5%,
    #fe464e 19%,
    #9f237b 45.5%,
    #4000a8 69%,
    #28067e 83.5%,
    #110b54 98%
  );
  background-size: 100% 100%;
  background-position: right center;
  animation: hero-gradient 5s ease-in-out infinite alternate;
}

@keyframes hero-gradient {
  to {
    background-size: 165% 100%;
  }
}

.hero-shape {
  display: none;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 125px;
}

.hero-title {
  position: relative;
  align-self: center;
  max-width: 550px;
  margin-bottom: 80px;
  padding-right: 34px;
}

.hero-heading {
  margin-bottom: 24px;
  color: #fff;
  font-size: 62px;
  line-height: 1.15;
}

.hero-paragraph {
  color: var(--ghost-white);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 48px;
}

.hero-graphics {
  position: relative;
  top: 42px;
  left: 29px;
}

.hero-graphics-row {
  display: flex;
  align-items: flex-end;
}

.hero-graphics-row + .hero-graphics-row {
  align-items: flex-start;
}

.hero-graphics img {
  margin: 15px;
}

.hero-graphic-bar {
  width: 100%;
  max-width: 290px;
}

.hero-graphic-chart {
  width: 100%;
  max-width: 220px;
}

/* ---------- Inner page heroes ---------- */

.page-hero {
  position: relative;
  padding: 180px var(--gutter) 60px;
  background: url("../assets/images/hero-bg-dark.png") 0 0 / 100% 100% no-repeat;
}

.page-hero-split {
  min-height: 550px;
  padding-bottom: 100px;
  overflow: hidden;
}

.page-hero-contact {
  padding: 220px var(--gutter) 100px;
}

.page-title {
  margin-bottom: 20px;
  color: var(--snow);
  font-size: 66px;
  line-height: 1;
}

.page-lede {
  color: var(--snow);
}

.title-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 62px;
  text-align: center;
}

.page-hero-contact .title-centered {
  margin-bottom: 0;
}

.page-hero-contact .page-title {
  font-size: 48px;
  line-height: 1.2;
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.6fr 0.75fr;
  gap: 32px;
}

.mission-image {
  align-self: end;
}

.mission-image img {
  width: 100%;
}

.mission-text {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 32px 32px;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 100px var(--gutter) 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-title .btn {
  margin-top: 32px;
}

.text-left {
  margin-top: 20px;
  text-align: left;
}

.stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Trusted by */

.clients {
  padding: 60px var(--gutter);
}

.clients-plain {
  padding-top: 0;
  padding-bottom: 0;
}

.eyebrow-heading {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clients-plain .eyebrow-heading {
  font-size: 32px;
  letter-spacing: -0.03em;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 40px;
  margin-top: 32px;
}

.logo-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  transition: box-shadow 0.3s;
}

.logo-card:hover {
  box-shadow: var(--card-shadow);
}

.logo-card img {
  max-width: 75%;
}

/* Home: capabilities */

.capabilities-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 42px 15px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 10px 0 48px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  color: var(--dark-slate-blue);
  font-size: 20px;
  line-height: 28px;
}

.check-list img {
  width: 48px;
  margin-right: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-card-image {
  max-width: 83%;
}

.feature-card-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 60%;
  background-color: var(--ghost-white-2);
}

/* Home: woman-owned */

.about-teaser {
  position: relative;
  padding: 0 var(--gutter) 60px;
  overflow: hidden;
}

.about-teaser-image {
  display: flex;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

.about-teaser-image img {
  width: 100%;
}

.contact-section {
  padding-top: 10px;
}

.divider-image {
  display: block;
  padding-bottom: 40px;
}

/* Services */

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.service-flip {
  margin: 142px 0;
}

.service p strong {
  color: var(--tomato);
}

.service-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.service-image-inner {
  position: relative;
  max-width: 80%;
}

.service-image-dots {
  position: absolute;
  bottom: 2%;
  left: -5%;
  z-index: -1;
}

/* Company */

.about-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.rule {
  height: 1px;
  border: 0;
  margin: 20px 0;
  background-color: var(--ghost-white-2);
}

.values-section {
  padding-top: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 32px;
}

.values-grid .btn {
  min-width: 170px;
  margin-top: 48px;
  border-color: var(--crimson);
  color: var(--tomato);
}

.values-grid .btn:hover {
  color: var(--snow);
}

.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-card {
  display: flex;
  align-items: center;
  padding: 32px;
  transition: box-shadow 0.3s;
}

.value-card:hover {
  box-shadow: var(--card-shadow);
}

.value-card img {
  width: 75px;
  margin-right: 24px;
}

.value-card h3 {
  margin: 0;
  color: var(--midnight-blue);
  font-size: 24px;
  font-weight: 500;
}

/* Call to action */

.cta {
  padding: 100px var(--gutter);
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 44px;
  text-align: center;
}

.cta-card img {
  margin-bottom: 40px;
}

.cta-card h2 {
  margin-bottom: 60px;
  color: var(--midnight-blue);
  font-size: 48px;
  letter-spacing: -0.04em;
}

/* ---------- Contact form ---------- */

.contact-form-section {
  max-width: 720px;
  margin: 0 auto 100px;
}

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

.field {
  margin-bottom: 32px;
}

.field-label,
.field-group legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--midnight-blue);
  font-size: 16px;
  font-weight: 400;
}

.field-label span,
.field-group legend span {
  color: var(--salmon);
}

.field-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group legend small {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--midnight-blue);
  cursor: pointer;
}

.checkbox input {
  margin: 3px 0 0;
}

.input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 20px 22px;
  border: 1px solid var(--ghost-white);
  border-radius: 50px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.3s;
}

.input::placeholder {
  color: rgba(135, 140, 189, 0.5);
  font-size: 16px;
}

.input:hover {
  border-color: var(--light-slate-grey);
}

.input:focus {
  outline: 0;
  border-color: var(--salmon);
  box-shadow: inset 0 0 0 1px var(--salmon);
}

textarea.input {
  min-height: 300px;
  border-radius: 28px;
  resize: vertical;
}

/* Spam honeypot: hidden from people, visible to naive bots */
.field-trap {
  position: absolute;
  left: -10000px;
}

.form-submit {
  min-width: 140px;
  height: 54px;
  border: 0;
  font-size: 16px;
}

.form-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-success,
.form-error {
  display: none;
}

.form-success {
  padding: 32px 20px;
  border: 1px solid var(--light-pink);
  background: var(--snow) url("../assets/images/globe-plain.svg") 0 0 / cover;
  color: var(--dark-slate-blue);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.form-error {
  margin-top: 10px;
  padding: 10px;
  background-color: #ffdede;
}

.contact-form-section.is-sent form {
  display: none;
}

.contact-form-section.is-sent .form-success,
.contact-form-section.has-error .form-error {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 140px var(--gutter) 0;
  background-color: var(--footer-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-title {
  margin-bottom: 20px;
  color: var(--light-slate-grey);
  font-size: 16px;
  text-transform: uppercase;
}

.footer-link {
  padding: 16px 0;
  color: #fff;
  font-size: 16px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--salmon);
}

.footer-logo {
  width: 140px;
  margin-bottom: 32px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  line-height: 1.5;
}

.footer-contact .footer-link {
  padding: 0;
}

.footer-social {
  max-width: 30px;
  padding-top: 16px;
}

.naics {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--snow);
  font-size: 16px;
  line-height: 30px;
}

.footer-legal {
  margin-top: 60px;
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-slate-grey);
  font-size: 16px;
  text-align: center;
}

/* ---------- 404 ---------- */

.utility-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px;
  background:
    linear-gradient(var(--midnight-blue), rgba(15, 10, 66, 0.9)),
    url("../assets/images/globe-plain.svg") center / contain no-repeat,
    var(--midnight-blue);
}

.utility-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 460px;
  max-width: 100%;
  text-align: center;
}

.utility-content h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 62px;
  line-height: 1.15;
}

.utility-content p {
  color: var(--ghost-white);
}

.utility-content .btn {
  margin-top: 32px;
  background-color: var(--salmon);
}

/* ---------- Scroll reveal (enabled by main.js) ---------- */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js [data-reveal="up"] {
  transform: translateY(55px);
}

.js [data-reveal="left"] {
  transform: translateX(55px);
}

.js [data-reveal="zoom"] {
  transform: scale(0.9);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 991px) {
  .hero {
    height: 880px;
  }

  .hero-gradient,
  .hero-graphics {
    display: none;
  }

  .hero-shape {
    display: block;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo img {
    width: 130px;
  }

  .nav {
    position: static; /* dropdown spans the full header width */
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--midnight-blue);
  }

  .nav-open .nav-menu {
    display: block;
  }

  .nav-link:hover {
    color: var(--salmon);
  }

  .nav-link-contact {
    display: block;
  }

  .nav-cta {
    display: none;
  }

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

  .capabilities-grid,
  .service,
  .values-grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
  }

  .feature-card {
    place-self: center;
  }

  .service-flip .service-text {
    order: -1;
  }

  .service-image-inner {
    display: flex;
    justify-content: center;
    max-width: none;
  }

  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mission-text {
    order: -1;
    grid-column: span 2;
    padding: 0;
  }

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

@media screen and (max-width: 767px) {
  .hero-shape {
    width: 120%;
    max-width: 120%;
  }

  .check-list img {
    width: 42px;
  }

  .value-card {
    padding-left: 14px;
  }

  .cta-card h2 {
    font-size: 42px;
  }
}

@media screen and (max-width: 479px) {
  h4 {
    margin-bottom: 8px;
  }

  .hero-heading {
    font-size: 52px;
  }

  .hero-grid {
    margin-top: 140px;
  }

  .page-hero {
    background-size: cover;
  }

  .page-title {
    font-size: 58px;
  }

  .mission-grid {
    gap: 20px;
  }

  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .check-list img {
    width: 32px;
  }

  .service h2 {
    font-size: 42px;
  }

  .service p {
    font-size: 16px;
  }

  .service-image-inner > img:first-child {
    max-width: 90%;
  }

  .value-list {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .value-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cta-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cta-card h2 {
    font-size: 38px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .contact-form-section form {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-column:not(:first-child) {
    order: -1;
  }
}
