/* CityHawk CNC: Home, Capabilities, About, Request a Quote */

:root {
  --purple: #3d0255;
  --purple-900: #2a0140;
  --purple-50: #f6f2f9;
  --gold: #f9a201;
  --gold-600: #d98a00;
  --ink: #1f1a24;
  --muted: #5f5868;
  --line: #e6e1eb;
  --radius: 14px;
  --wrap: 1120px;
  --head-h: 78px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* every page fills at least one screen */
main { min-height: calc(100vh - var(--head-h)); }
/* one page, four screens: on a laptop or desktop, scrolling snaps to the next section */
html { scroll-padding-top: var(--head-h); }
@media (min-width: 821px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; }
  .snap { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.copyright {
  position: absolute; left: 0; right: 0; bottom: 14px; margin: 0;
  text-align: center; font-size: 13px; color: var(--muted);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--purple);
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.bg-alt { background: var(--purple-50); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 10px; height: 18px;
  background: var(--gold);
  transform: skewX(-20deg);
}

/* inner pages */
.page { padding: 72px 0 104px; min-height: calc(100vh - var(--head-h)); }
.page-head { margin-bottom: 40px; }
.page-head h2 { font-size: clamp(34px, 4.2vw, 50px); letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  border: 2px solid var(--purple);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-900); border-color: var(--purple-900); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--purple-900); }
.btn-gold:hover { background: #ffb62e; border-color: #ffb62e; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: #fff; color: var(--purple); border-color: #fff; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line); /* a line under the header that adds no height */
}
.site-head .wrap {
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-links a:not(.btn) {
  position: relative;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
}
.nav-links a:not(.btn):hover { color: var(--purple); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--purple); }
.nav-links a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.nav-links .btn { padding: 10px 18px; font-size: 15px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--purple);
  cursor: pointer;
}

/* ---------- slider parts shared by home and capabilities ---------- */
.carousel { position: relative; overflow: hidden; overflow: clip; touch-action: pan-y; }
.carousel:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.carousel-track { display: flex; height: 100%; transition: transform .6s ease; }
.slide { flex: 0 0 100%; margin: 0; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.car-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; padding: 12px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--purple);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  cursor: pointer; transition: background .15s, transform .15s;
}
.car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.car-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.car-btn.prev { left: 24px; }
.car-btn.next { right: 24px; }
.car-btn svg { width: 22px; height: 22px; }

/* ---------- home: full-screen photo slider ---------- */
.hero-slider {
  height: calc(100vh - var(--head-h));
  min-height: 540px;
  background: var(--purple-900);
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30, 0, 45, .86) 0%, rgba(30, 0, 45, .62) 36%, rgba(30, 0, 45, .12) 68%, rgba(30, 0, 45, 0) 100%),
    linear-gradient(0deg, rgba(30, 0, 45, .45) 0%, rgba(30, 0, 45, 0) 22%);
}
.hero-copy {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center;
}
.hero-copy .wrap { width: 100%; }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.025em;
  max-width: none;
}
.hero-copy .lede {
  margin-top: 20px; max-width: 44ch;
  font-size: 19px; color: rgba(255, 255, 255, .88);
}
.hero-copy .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy a { pointer-events: auto; }
.hero-slider .car-dots {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px;
  border-radius: 999px; background: rgba(20, 8, 28, .5);
}
.dot-list { display: flex; gap: 8px; }
.dot-list button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  cursor: pointer; transition: width .25s, background .25s;
}
.dot-list button { background: rgba(255, 255, 255, .6); }
.dot-list button[aria-current="true"] { width: 26px; background: var(--gold); }
.dot-list button:focus-visible, .car-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.car-pause {
  width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.car-pause svg { width: 14px; height: 14px; }
.car-pause .i-play { display: none; }
.car-pause.is-paused .i-play { display: block; }
.car-pause.is-paused .i-pause { display: none; }

/* ---------- capabilities: tabs switch one wide photo ---------- */
/* the whole page fits one laptop screen */
.page.caps-page { display: flex; align-items: center; padding: 28px 0; }
.caps-page .wrap { width: 100%; }
.caps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.caps-page .page-head { margin-bottom: 0; }
.caps-page .page-head .eyebrow { margin-bottom: 8px; }
.caps-page .page-head h2 { font-size: clamp(32px, 3.4vw, 44px); }
.cap-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--purple-50); }
.cap-tab {
  padding: 10px 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--purple); white-space: nowrap;
  transition: background .2s, color .2s;
}
.cap-tab:hover { background: #ebe2f2; }
.cap-tab[aria-pressed="true"] { background: var(--purple); color: #fff; }
.cap-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cap-stage {
  position: relative; margin-top: 22px;
  height: clamp(340px, calc(100vh - var(--head-h) - 216px), 620px);
  border-radius: 16px; overflow: hidden; overflow: clip; background: #0c0d13;
  touch-action: pan-y;
}
.cap-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.cap-stage img.is-active { opacity: 1; }
/* the square wire EDM photo: whole frame on the right, its left edge fading into the dark */
.cap-stage img[data-fit="right"] {
  left: auto; width: 60%; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.cap-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(30, 4, 44, .86) 0%, rgba(30, 4, 44, .55) 36%, rgba(30, 4, 44, 0) 62%);
}
.cap-panel {
  position: absolute; z-index: 1; left: 44px; top: 50%; transform: translateY(-50%);
  max-width: 380px; color: #fff;
}
.cap-panel[hidden] { display: none; }
.cap-panel h3 { margin: 0; font-size: clamp(30px, 3vw, 40px); color: #fff; letter-spacing: -0.01em; }
.cap-panel p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.cap-panel ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-weight: 600; }
.cap-panel li { display: flex; align-items: center; gap: 11px; }
.cap-panel li::before { content: ""; flex: none; width: 7px; height: 13px; background: var(--gold); transform: skewX(-20deg); }
.cap-facts {
  margin: 16px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 36px;
  font-size: 15px; color: var(--muted);
}
.cap-facts b { margin-left: 4px; color: var(--purple); }

/* ---------- about ---------- */
.page.about { display: flex; align-items: center; }
.about .wrap { width: 100%; display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.about figure { margin: 0; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.about h2 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -0.02em; margin-bottom: 24px; max-width: 16ch; }
.about p { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 58ch; }

/* ---------- request a quote ---------- */
/* the whole page fits one laptop screen: content centered, tighter spacing */
.page.quote { position: relative; display: flex; align-items: center; padding: 36px 0 52px; }
.quote .wrap { width: 100%; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.quote h2 { font-size: clamp(34px, 4.2vw, 50px); letter-spacing: -0.02em; }
.quote-text .lede { margin-top: 16px; max-width: 34ch; font-size: 18px; color: var(--muted); }
.send-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.send-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.send-list li::before {
  content: ""; flex: none; width: 8px; height: 14px; background: var(--gold); transform: skewX(-20deg);
}
.quote-form {
  display: grid; gap: 12px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 18px;
  box-shadow: 0 10px 30px rgba(61, 2, 85, .06);
}
.quote-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.quote-form .hint { font-weight: 400; color: var(--muted); }
.quote-form input, .quote-form textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400;
  padding: 10px 12px; border: 1px solid #cfc8d6; border-radius: 8px; background: #fff; color: var(--ink);
}
.quote-form input[type="file"] { padding: 8px; font-size: 14px; background: var(--purple-50); }
.quote-form textarea { resize: vertical; min-height: 92px; }
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--purple); }
.quote-form .invalid { border-color: #b3261e; }
.quote-form .btn { width: 100%; margin-top: 2px; font-size: 17px; padding: 12px; cursor: pointer; }
.quote-form .btn:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: #1d6b38; font-weight: 600; }
.form-note.err { color: #b3261e; }
.form-note a { color: inherit; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  /* keep the text clear of the side arrows */
  .hero-copy .wrap { padding-left: 96px; padding-right: 96px; }
}
@media (max-width: 980px) {
  .about .wrap { grid-template-columns: 260px 1fr; gap: 40px; }
  .quote .wrap { gap: 40px; }
}
@media (max-width: 820px) {
  :root { --head-h: 68px; }
  .page { padding: 48px 0 72px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 28px 20px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin-top: 16px; }

  /* home: text sits at the bottom, arrows flank the dots */
  .hero-slider { min-height: 560px; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(30, 0, 45, .9) 0%, rgba(30, 0, 45, .7) 42%, rgba(30, 0, 45, .15) 72%, rgba(30, 0, 45, 0) 100%);
  }
  .hero-copy { align-items: flex-end; padding-bottom: 92px; }
  .hero-copy .wrap { padding-left: 24px; padding-right: 24px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-copy .lede { font-size: 17px; margin-top: 14px; }
  .hero-copy .actions { margin-top: 22px; }
  .hero-slider .car-btn { top: auto; bottom: 20px; transform: none; width: 42px; height: 42px; padding: 10px; }
  .hero-slider .car-btn:hover { transform: scale(1.06); }
  .hero-slider .car-btn.prev { left: 16px; }
  .hero-slider .car-btn.next { right: 16px; }
  .hero-slider .car-dots { bottom: 24px; }

  .about .wrap, .quote .wrap { grid-template-columns: 1fr; gap: 32px; }
  .about figure { max-width: 300px; }
  .cap-tabs { width: 100%; }
  .cap-tab { flex: 1 1 auto; padding: 9px 6px; font-size: 13px; }
  .cap-stage { height: 460px; }
  .cap-stage img[data-fit="right"] { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .cap-shade { background: linear-gradient(0deg, rgba(30, 4, 44, .9) 0%, rgba(30, 4, 44, .6) 45%, rgba(30, 4, 44, 0) 75%); }
  .cap-panel { left: 22px; right: 22px; top: auto; bottom: 22px; transform: none; }
  .cap-panel p { font-size: 15px; }
  .cap-panel ul { margin-top: 12px; gap: 4px; font-size: 14px; }
  .cap-facts { flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .quote-form { padding: 22px; }
  .quote-form .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track, .cap-stage img { transition: none; }
}
