:root {
  color-scheme: light;
  --ink: #15201c;
  --muted: #5b6861;
  --paper: #f7f3ea;
  --paper-2: #ede7d9;
  --moss: #5fa786;
  --gold: #e4b04d;
  --gold-ink: #8a6410;
  --night: #0d1217;
  --line: rgba(21, 32, 28, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main,
section,
div,
article {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fffaf0;
  background: linear-gradient(to bottom, rgba(13, 18, 23, 0.72), rgba(13, 18, 23, 0));
  transition: background-color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.scrolled {
  padding-block: 12px;
  background: rgba(11, 15, 19, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(8, 12, 16, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.nav-toggle-bars::before {
  position: absolute;
  left: 0;
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  transform: translateY(6px);
}

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

.site-header.nav-open .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars::after {
  transform: translateY(0) rotate(-45deg);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
  border-radius: 8px;
}

nav {
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 132px clamp(20px, 5vw, 72px) 76px;
  color: #fffaf0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(13, 18, 23, 0.92) 0%, rgba(13, 18, 23, 0.72) 44%, rgba(13, 18, 23, 0.2) 100%),
    url("assets/luxbase-workbench.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(to bottom, rgba(13, 18, 23, 0), var(--paper));
}

.hero-content {
  width: min(760px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-note {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.96rem;
  font-weight: 650;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 850;
  border: 1px solid transparent;
}

.button {
  transition: filter 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button:hover {
  filter: brightness(0.97);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.button.primary {
  background: var(--gold);
  color: #21180a;
}

.button.primary.light {
  background: #fffaf0;
  color: var(--ink);
}

.button.secondary {
  color: #fffaf0;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.intro,
.section,
.split-section,
.contact-band {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.intro {
  padding: 54px 0 22px;
}

.intro p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  line-height: 1.18;
  font-weight: 720;
}

.section {
  padding: 76px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
}

.clients {
  padding-top: 58px;
  padding-bottom: 58px;
  border-top: 1px solid var(--line);
}

.client-list {
  display: grid;
  gap: 12px;
}

.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 0 1px 2px rgba(21, 32, 28, 0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.client-row:hover {
  border-color: rgba(95, 167, 134, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21, 32, 28, 0.1);
}

.client-thumb {
  flex: 0 0 auto;
  width: 200px;
  height: 125px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.client-text {
  display: grid;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.client-row strong {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.client-row small {
  color: var(--muted);
  font-size: 0.98rem;
}

.client-arrow {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 12px;
  color: #fffaf0;
  background: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 0 1px 2px rgba(21, 32, 28, 0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: rgba(95, 167, 134, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21, 32, 28, 0.09);
}

.service-icon {
  width: max-content;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card p {
  margin: 26px 0 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step strong {
  font-size: 1.12rem;
}

.step span {
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-block: 52px 76px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(95, 167, 134, 0.34), rgba(228, 176, 77, 0.24)),
    var(--night);
}

.contact-band h2 {
  max-width: 780px;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
}

.contact-form {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  flex: 0 0 min(420px, 100%);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.1);
  color: #fffaf0;
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fffaf0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.contact-form select option {
  color: #15201c;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(228, 176, 77, 0.82);
  box-shadow: 0 0 0 3px rgba(228, 176, 77, 0.16);
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hidden {
  display: none;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.93rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Eyebrows on dark backgrounds keep the bright gold (contrast is fine there). */
.hero .eyebrow,
.contact-band .eyebrow {
  color: var(--gold);
}

/* Visible keyboard focus across interactive elements. */
a:focus-visible,
.button:focus-visible,
button:focus-visible,
.client-row:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .client-row:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: fixed;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(18px, 4vw, 56px);
    right: clamp(18px, 4vw, 56px);
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 19, 0.94);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 18px 44px rgba(8, 12, 16, 0.4);
    color: #fffaf0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  nav a {
    padding: 13px 14px;
    border-radius: 9px;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header.nav-open nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .hero {
    min-height: 82vh;
    padding-top: 112px;
  }

  .hero-media {
    background-image:
      linear-gradient(90deg, rgba(13, 18, 23, 0.94) 0%, rgba(13, 18, 23, 0.68) 100%),
      url("assets/luxbase-workbench.svg");
    background-position: 58% center;
  }

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

  .service-card {
    min-height: 240px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.35rem, 10.5vw, 2.75rem);
  }

  .hero {
    padding-inline: 24px;
  }

  .hero-content,
  .intro,
  .section,
  .split-section,
  .contact-band {
    width: calc(100% - 48px);
    max-width: 342px;
  }

  .hero-content {
    justify-self: start;
  }

  .hero-content h1 {
    max-width: 9.6ch;
  }

  .hero-copy {
    font-size: 1.02rem;
    max-width: 342px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro p {
    font-size: 1.36rem;
  }

  .section,
  .split-section {
    padding-block: 52px;
  }
}

@media (max-width: 600px) {
  .client-row {
    flex-wrap: wrap;
  }

  .client-thumb {
    width: 100%;
    height: 168px;
    order: -1;
  }

  .client-text {
    flex-basis: 60%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
