/* Mercury Horizon — Automation Engineering AI */
:root {
  --silver: #c5ccd6;
  --silver-bright: #e4e8ee;
  --silver-deep: #9aa3b0;
  --peach: #f0c4a8;
  --peach-warm: #e8a882;
  --gold: #c9a86c;
  --gold-soft: #d4b896;
  --graphite: #2c3038;
  --graphite-mid: #3a3f47;
  --graphite-soft: #5a616c;
  --ink: #1e2228;
  --line: rgba(44, 48, 56, 0.14);
  --glow-peach: rgba(240, 196, 168, 0.35);
  --glow-gold: rgba(201, 168, 108, 0.28);
  --glow-silver: rgba(197, 204, 214, 0.45);
  --font-display: "Outfit", "Nunito", sans-serif;
  --font-body: "Nunito", "Outfit", sans-serif;
  --max: 70rem;
  --ease: cubic-bezier(0.34, 1.3, 0.64, 1);
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(165deg, #f7f3ee 0%, #ebe6e0 40%, #dfe4ea 100%);
  position: relative;
}

.mercury-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, var(--glow-peach), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, var(--glow-gold), transparent 50%),
    radial-gradient(ellipse 70% 45% at 50% 100%, var(--glow-silver), transparent 55%),
    linear-gradient(120deg, transparent 0%, rgba(197, 204, 214, 0.2) 40%, transparent 70%);
  animation: horizon-drift 18s ease-in-out infinite alternate;
}

@keyframes horizon-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  to { transform: translate3d(-1.5%, 1%, 0) scale(1.03); opacity: 0.92; }
}

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

a {
  color: var(--graphite-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--peach-warm);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--graphite);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 238, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--peach-warm); }

.nav-toggle {
  display: none;
  background: linear-gradient(145deg, var(--silver-bright), var(--silver));
  border: 1px solid var(--line);
  color: var(--graphite);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite-soft);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--graphite);
}

/* Buttons — liquid depression */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  color: var(--silver-bright);
  background:
    linear-gradient(160deg, var(--graphite-mid) 0%, var(--graphite) 55%, #1a1e24 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(44, 48, 56, 0.22);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-radius 0.35s var(--ease),
    filter 0.25s ease;
}

.btn:hover {
  color: #fff;
  filter: brightness(1.05);
  border-radius: 1.4rem 0.9rem 1.5rem 1rem;
  transform: translateY(2px) scale(0.985);
  box-shadow:
    inset 0 6px 14px rgba(0, 0, 0, 0.28),
    inset 0 -2px 0 rgba(240, 196, 168, 0.25),
    0 4px 12px rgba(44, 48, 56, 0.18);
}

.btn:active {
  transform: translateY(3px) scale(0.97);
  border-radius: 1.6rem 0.7rem 1.7rem 0.9rem;
  box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  color: var(--graphite);
  background: linear-gradient(145deg, var(--silver-bright), var(--silver));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 18px rgba(44, 48, 56, 0.1);
}

.btn-ghost:hover {
  color: var(--graphite);
  filter: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed, bottom-anchored strip (varied composition) */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--silver-bright);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: hero- ken 22s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 48, 56, 0.15) 0%, rgba(44, 48, 56, 0.25) 40%, rgba(30, 34, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(240, 196, 168, 0.18), transparent 45%);
}

.hero-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 0 3.25rem;
  background:
    linear-gradient(105deg, rgba(44, 48, 56, 0.72), rgba(58, 63, 71, 0.55) 55%, rgba(201, 168, 108, 0.22));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(197, 204, 214, 0.28);
  animation: strip-rise 0.9s var(--ease) both;
}

@keyframes strip-rise {
  from { transform: translateY(1.5rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--peach);
  letter-spacing: -0.02em;
  animation: brand-glow 4s ease-in-out infinite alternate;
}

@keyframes brand-glow {
  from { text-shadow: 0 0 0 transparent; }
  to { text-shadow: 0 0 24px rgba(240, 196, 168, 0.45); }
}

.hero h1 {
  color: var(--silver-bright);
  max-width: 18ch;
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 500;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.35rem;
  color: var(--silver);
  font-size: 1.05rem;
}

.section {
  padding: 4.5rem 0;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--graphite-soft);
  margin-bottom: 2rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero .lead {
  max-width: 40rem;
  color: var(--graphite-soft);
  font-size: 1.1rem;
}

/* Service rows — not card grids */
.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(44, 48, 56, 0.12);
}

.service-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.service-row h3 a {
  text-decoration: none;
  color: var(--graphite);
}

.service-row h3 a:hover {
  color: var(--peach-warm);
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote {
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--peach);
  background: linear-gradient(90deg, rgba(197, 204, 214, 0.28), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--graphite-mid);
}

.quote footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--graphite-soft);
}

/* Detail / atlas */
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 1rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius);
}

.atlas-hero-img,
.method-hero-img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1rem 0 2.5rem;
}

.atlas-steps,
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.atlas-step,
.method-step {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.atlas-step:last-child,
.method-step:last-child {
  border-bottom: 1px solid var(--line);
}

/* Pricing bands */
.price-band {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.price-band:last-child {
  border-bottom: 1px solid var(--line);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--graphite);
  margin: 0;
}

.price-fits {
  font-size: 0.92rem;
  color: var(--graphite-soft);
  margin: 0.5rem 0 0;
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.blog-row img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-date {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}

.blog-row h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.5rem;
}

.blog-row h2 a {
  text-decoration: none;
  color: var(--graphite);
}

.prose {
  max-width: 42rem;
  padding: 1.5rem 0 4rem;
}

.prose h2 {
  margin-top: 2rem;
}

.includes {
  padding-left: 1.2rem;
}

.includes li {
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite-mid);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), var(--silver-bright));
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--peach-warm);
  box-shadow: 0 0 0 3px rgba(240, 196, 168, 0.35);
}

.field-error {
  color: #a0453a;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 1em;
}

.form-status {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.form-status.is-success { color: #2f6b4f; }
.form-status.is-error { color: #a0453a; }

.contact-aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(197, 204, 214, 0.45), rgba(240, 196, 168, 0.2));
  border: 1px solid var(--line);
}

.contact-aside h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

/* Legal */
.legal-body {
  padding-bottom: 4rem;
}

.legal-body ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(197, 204, 214, 0.35));
  font-size: 0.95rem;
  color: var(--graphite-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-legal a {
  text-decoration: none;
  font-weight: 600;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--graphite-mid), var(--graphite));
  color: var(--silver-bright);
  box-shadow: 0 16px 40px rgba(30, 34, 40, 0.35);
  border: 1px solid rgba(197, 204, 214, 0.25);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: strip-rise 0.5s var(--ease) both;
}

.cookie-banner a {
  color: var(--peach);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cookie-error {
  color: var(--peach);
  font-size: 0.85rem;
  margin: 0.65rem 0 0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(247, 243, 238, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-row,
  .blog-row,
  .detail-hero,
  .contact-layout,
  .price-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(88vh, 40rem);
  }
}
