/* Axiora Diagnostics — premium styles */

:root {
  --void: #061018;
  --ink: #122433;
  --ink-soft: #4d6370;
  --pearl: #eef3f5;
  --snow: #f7fafb;
  --line: rgba(18, 36, 51, 0.1);
  --line-strong: rgba(18, 36, 51, 0.18);
  --accent: #1a656e;
  --accent-soft: #2f838c;
  --gold: #c9a56a;
  --gold-soft: rgba(201, 165, 106, 0.35);
  --white: #ffffff;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--snow);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}

.skip-link:focus { top: 1rem; }

.rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.75rem;
}

.rule-light {
  background: var(--gold-soft);
  background: linear-gradient(90deg, var(--gold), transparent);
  width: 4.5rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), border-color 0.45s, backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(6, 16, 24, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.logo {
  position: relative;
  z-index: 60;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.3s;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.nav-cta):hover {
  color: var(--white);
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.65rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: var(--white) !important;
  letter-spacing: 0.08em !important;
  transition: background 0.3s, border-color 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--void) !important;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  margin: 0.35rem auto;
  background: var(--white);
  transition: transform 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.65rem;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}

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

.btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}

.btn-primary:hover {
  background: #d4b47c;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 24, 0.72) 0%,
      rgba(6, 16, 24, 0.78) 45%,
      rgba(6, 16, 24, 0.88) 100%
    ),
    url("https://images.unsplash.com/photo-1559757175-5700dde675bc?auto=format&fit=crop&w=2400&q=80")
      center / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 22s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 55%, rgba(6, 16, 24, 0.45), transparent 70%),
    linear-gradient(to top, rgba(6, 16, 24, 0.7) 0%, transparent 40%);
  pointer-events: none;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.15s forwards;
}

.brand em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.05em;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.35s forwards;
}

.hero-lead {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 auto 2.25rem;
  max-width: 40ch;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.65s forwards;
}

.hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.9s forwards;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.hero-scroll:hover {
  color: var(--gold);
}

.hero-scroll::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Shared —— */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section h2,
.commitment h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.35rem;
  max-width: 16ch;
}

.lede,
.about-copy p,
.partners-note,
.commitment-content p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 52ch;
}

.about-copy p + p {
  margin-top: 1.15rem;
}

/* —— About —— */
.about {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(201, 165, 106, 0.08), transparent 50%),
    linear-gradient(180deg, var(--snow), var(--pearl));
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.about-copy {
  max-width: 34rem;
}

.about-copy .section-title,
.about-copy h2 {
  max-width: 14ch;
}

.about-copy p {
  max-width: none;
}

.about-aside {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.about-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a2a35;
  border-radius: 18px;
  border: 1px solid rgba(18, 36, 51, 0.08);
  box-shadow:
    0 18px 40px rgba(6, 16, 24, 0.1),
    0 2px 8px rgba(6, 16, 24, 0.04);
}

.about-visual::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 85%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.about-location {
  margin-top: 1rem;
  padding-left: 0.15rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.about-location span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Services —— */
.services {
  background: var(--void);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  right: -10%;
  top: 0;
  background: radial-gradient(ellipse at center, rgba(201, 165, 106, 0.08), transparent 70%);
  pointer-events: none;
}

.services .eyebrow {
  color: var(--gold);
}

.services h2 {
  color: var(--white);
  max-width: 14ch;
}

.services .lede {
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.25rem;
}

.services-intro {
  margin-bottom: 3.5rem;
  max-width: 34rem;
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.service-grid li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.35s, padding-left 0.35s var(--ease);
}

.service-grid li:hover {
  color: var(--gold);
  padding-left: 0.35rem;
}

.service-grid .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(201, 165, 106, 0.7);
}

/* —— Why —— */
.why {
  background: var(--snow);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.why-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.45;
}

.why-list li:first-child {
  border-top: 1px solid var(--line);
}

.why-list li span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}

/* —— Commitment —— */
.commitment {
  position: relative;
  padding: clamp(6rem, 12vw, 9rem) 0;
  color: var(--white);
  overflow: hidden;
}

.commitment-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 16, 24, 0.92), rgba(18, 50, 58, 0.85)),
    url("https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
}

.commitment-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.commitment .eyebrow {
  color: var(--gold);
}

.commitment h2 {
  color: var(--white);
  max-width: 14ch;
}

.commitment-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* —— Partners —— */
.partners {
  background:
    linear-gradient(180deg, var(--pearl), var(--snow));
}

.partners-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.partner-list {
  border-top: 1px solid var(--line-strong);
}

.partner-list li {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.25;
  transition: padding-left 0.35s var(--ease), color 0.35s;
}

.partner-list li:hover {
  color: var(--accent);
  padding-left: 0.4rem;
}

.partners-note {
  margin-top: 0.5rem;
}

/* —— Contact —— */
.contact {
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(201, 165, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--snow), var(--pearl));
}

.contact-simple {
  max-width: 40rem;
}

.contact-simple h2 {
  max-width: 14ch;
}

.contact-address {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-address strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
}

.contact-address span {
  color: var(--ink-soft);
  font-weight: 300;
}

.contact-address a {
  margin-top: 0.2rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-address a:hover {
  color: var(--ink);
}

.contact-note {
  margin-top: 1.75rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 36ch;
}

/* —— Footer —— */
.site-footer {
  background: var(--void);
  color: rgba(255, 255, 255, 0.42);
  padding: 2.25rem 0;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}

.footer-brand span,
.footer-brand a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.footer-brand a:hover {
  color: var(--gold);
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  margin-left: auto;
  letter-spacing: 0.02em;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 var(--gutter);
    background: rgba(6, 16, 24, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
  }

  .site-nav a:not(.nav-cta)::after { display: none; }

  .nav-cta {
    margin-top: 0.75rem;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
  }

  .about-grid,
  .why-grid,
  .partners-inner {
    grid-template-columns: 1fr;
  }

  .about-aside {
    order: -1;
    max-width: none;
    justify-self: stretch;
  }

  .about-copy {
    max-width: none;
  }

  .about-visual {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }

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

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .logo { font-size: 1.2rem; }

  .hero-content { padding-bottom: 1.5rem; }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@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;
  }

  .hero-media { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
