/* 3Space Studio — shared styles
   Palette: #FF7900 (highlight)  #B5B4B4  #313732  #EAEAEA
   Fonts:   Barlow / Barlow Semi Condensed for copy, Orbitron for small accents (matches the logo) */

:root {
  --orange: #FF7900;
  --gray: #B5B4B4;
  --ink: #313732;
  --paper: #EAEAEA;
  --ink-soft: #5B615C;      /* softer version of the ink color for secondary text */
  --white: #F6F6F6;
  --max: 1160px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange);
}

.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }

.hl {
  background: linear-gradient(transparent 68%, rgba(255,121,0,.55) 68%, rgba(255,121,0,.55) 92%, transparent 92%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Barlow", sans-serif;
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8c26; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(234,234,234,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(181,180,180,.6);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 1rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav .btn { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
  background-image: radial-gradient(rgba(181,180,180,.75) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
}
.hero::after {   /* fade the dot grid out toward the bottom */
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { margin: 22px 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }
.hero-art text {
  font-family: "Orbitron", sans-serif; font-size: 11px; letter-spacing: .16em;
  fill: var(--ink-soft);
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin: 16px 0 14px; }

/* Services */
.services { background: var(--white); border-top: 1px solid var(--gray); border-bottom: 1px solid var(--gray); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 26px 36px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card::before {
  content: ""; position: absolute; top: -1px; left: 32px; width: 48px; height: 3px;
  background: var(--orange);
}
.hex-num {
  width: 52px; height: 60px; margin-bottom: 26px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink); color: var(--paper);
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 1.05rem; }

/* Process */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  counter-reset: step;
  position: relative;
}
.steps::before {   /* the connecting line */
  content: ""; position: absolute; top: 17.5px; left: 15px; right: 15px;
  height: 2px; background: var(--gray);
}
.steps li { position: relative; padding-right: 22px; }
.steps .dot {
  width: 32px; height: 36.95px; margin-bottom: 22px; position: relative;   /* width = 0.866 x height keeps the hexagon regular */
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gray);
}
.steps li:first-child .dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  clip-path: polygon(50% 8%, 92% 29%, 92% 71%, 50% 92%, 8% 71%, 8% 29%);
}
.steps li:first-child .dot { background: var(--ink); }
.steps li:last-child .dot { background: var(--orange); }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.steps .tag {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: .9rem; font-weight: 600; letter-spacing: .08em;
  color: var(--orange); display: block; margin-bottom: 2px;
}

/* CTA band */
.cta { background: var(--ink); color: var(--paper); padding: 84px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: var(--paper); }
.cta p { color: var(--gray); font-size: 1.2rem; margin-top: 10px; }
.cta .btn-primary { border-color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: #282D29; color: var(--gray); padding: 56px 0 40px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer .logo img { height: 36px; margin-bottom: 14px; }
.site-footer h4 {
  font-family: "Orbitron", sans-serif; font-size: .66rem; letter-spacing: .18em; font-weight: 500;
  text-transform: uppercase; color: var(--paper); margin-bottom: 12px;
}
.site-footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(255,121,0,.7); }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(181,180,180,.25);
  font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- Contact page ---------- */
.contact { padding: 84px 0 110px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 20px 0 22px; }
.contact-info { margin-top: 44px; display: grid; gap: 26px; }
.contact-info h4 {
  font-family: "Orbitron", sans-serif; font-size: .66rem; letter-spacing: .18em; font-weight: 500;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
.contact-info a { text-decoration: none; border-bottom: 2px solid var(--orange); font-weight: 500; }
.contact-info address { font-style: normal; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 40px;
}
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255,121,0,.35); }
textarea { min-height: 170px; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; }   /* spam trap, hidden from people */
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: .98rem; }
.form-status.ok { color: #2F7A3E; font-weight: 600; }
.form-status.err { color: #B23A1E; font-weight: 600; }
button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: start; max-width: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .logo img { height: 32px; }
  .nav { gap: 18px; }
  .nav .home-link { display: none; }
  .hero { padding: 64px 0 80px; }
  section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row, .cards { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
