/* KJAT Contracting — refined trade brand */
:root {
  --color-primary: #00b7bf;
  --color-primary-dark: #009199;
  --color-ink: #0e0d13;
  --color-white: #ffffff;
  --color-grey-warm: #9c9698;
  --color-grey-mid: #67686a;
  --color-surface: #141318;
  --color-surface-2: #1a191f;
  --color-line: rgba(156, 150, 152, 0.22);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: min(1080px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
  --sticky-h: 3.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-h);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-ink);
  padding: 0.5rem 1rem;
  font-weight: 600;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-ink);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-ink);
}

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

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 19, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.header-brand img {
  width: clamp(130px, 26vw, 176px);
  height: auto;
}

.header-nav {
  display: none;
  gap: 2rem;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.header-nav a:hover {
  color: var(--color-primary);
}

.header-call {
  display: none;
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

@media (min-width: 960px) {
  .header-call {
    display: inline-flex;
  }
}

/* Hero — fleet stays fixed; page content slides over it */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5rem;
  background: transparent;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0e0d13;
  pointer-events: none;
  overflow: hidden;
}

.hero-fleet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 0.5;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 13, 19, 0.68) 0%, rgba(14, 13, 19, 0.82) 48%, rgba(14, 13, 19, 0.92) 100%),
    radial-gradient(ellipse 70% 55% at 8% 90%, rgba(0, 183, 191, 0.14), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

/* Opaque bands slide over the fixed fleet */
.trust-bar,
.section,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: min(100%, 380px);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise-in 0.85s var(--ease) 0.08s forwards;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-white);
  opacity: 0;
  animation: rise-in 0.85s var(--ease) 0.2s forwards;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  max-width: 30rem;
  opacity: 0;
  animation: rise-in 0.85s var(--ease) 0.35s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise-in 0.85s var(--ease) 0.48s forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust bar */
.trust-bar {
  background: var(--color-surface-2);
  border-block: 1px solid var(--color-line);
}

.trust-inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem 0;
}

.trust-inner p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}

.trust-inner span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.trust-inner a {
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 720px) {
  .trust-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--color-grey-warm);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--color-surface);
}

.section-ink {
  background: var(--color-ink);
}

.section-light {
  background: #f3f2f1;
  color: var(--color-ink);
}

.section-light .section-lead {
  color: var(--color-grey-mid);
}

.section-light .section-label {
  color: var(--color-primary-dark);
}

/* Services */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.services-list li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: background 0.25s var(--ease);
}

.services-list li:hover {
  background: rgba(0, 183, 191, 0.04);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  padding-top: 0.2rem;
}

.services-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.services-list p {
  margin: 0;
  color: var(--color-grey-warm);
  max-width: 34rem;
  font-size: 1rem;
}

@media (min-width: 800px) {
  .services-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    border-top: none;
  }

  .services-list li {
    border-top: 1px solid var(--color-line);
  }
}

/* Video — flexible frame; reels use portrait 9:16 */
.video-stage {
  max-width: 920px;
}

.video-stage--reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  overflow: hidden;
}

/* Portrait reels: scale to viewport height, keep 9:16 */
.video-frame--reel {
  width: min(100%, 22.5rem, calc(min(78vh, 44rem) * 9 / 16));
  max-height: min(78vh, 44rem);
  aspect-ratio: 9 / 16;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-frame video {
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  inset: 0;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  opacity: 0.55;
}

.video-frame--reel .video-placeholder img {
  object-fit: cover;
  object-position: center;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14, 13, 19, 0.35), rgba(14, 13, 19, 0.75));
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-display);
}

.video-play:disabled {
  cursor: default;
}

.video-play:not(:disabled):hover .video-play-icon {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.video-play-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-ink);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent currentColor;
}

.video-play-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.video-frame.is-playing .video-placeholder {
  display: none;
}

.video-fallback {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--color-grey-warm);
}

.video-fallback a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.video-fallback a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Proof */
.proof-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.proof-slot {
  min-height: 11rem;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid rgba(14, 13, 19, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slot-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.slot-note {
  margin: 0;
  color: var(--color-grey-mid);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Gallery */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(0, 183, 191, 0.06), transparent 55%),
    var(--color-surface-2);
  border: 1px solid var(--color-line);
  color: rgba(156, 150, 152, 0.55);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Quote */
.quote-layout {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 900px) {
  .quote-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 4rem;
  }
}

.quote-intro .section-lead {
  margin-bottom: 1.75rem;
}

.phone-feature {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-feature span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-grey-warm);
}

.phone-feature:hover {
  color: var(--color-primary-dark);
}

.quote-form {
  background: var(--color-surface-2);
  padding: 1.75rem 1.35rem;
  border-top: 2px solid var(--color-primary);
}

@media (min-width: 600px) {
  .quote-form {
    padding: 2rem 2.1rem;
  }
}

.form-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.optional {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-grey-warm);
  font-size: 0.7rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--color-white);
  background: var(--color-ink);
  border: 1px solid rgba(156, 150, 152, 0.35);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row input[type="file"] {
  padding: 0.45rem 0;
  border: none;
  background: transparent;
  color: var(--color-grey-warm);
  font-size: 0.92rem;
}

.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid {
  border-color: #c96b6b;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  font-weight: 500;
  font-size: 0.98rem;
}

.form-status.is-success {
  background: rgba(0, 183, 191, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(0, 183, 191, 0.45);
}

.form-status.is-error {
  background: rgba(201, 107, 107, 0.1);
  color: #e8b0b0;
  border: 1px solid rgba(201, 107, 107, 0.45);
}

.quote-form.is-success .form-row,
.quote-form.is-success .form-grid,
.quote-form.is-success #quote-submit {
  display: none;
}

/* Footer */
.site-footer {
  background: #08070b;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }
}

.footer-brand img {
  width: 168px;
  margin-bottom: 0.85rem;
}

.footer-brand p,
.footer-contact p {
  margin: 0.3rem 0;
  color: var(--color-grey-warm);
  font-size: 0.95rem;
}

.footer-heading {
  margin: 0 0 0.75rem !important;
  font-family: var(--font-display);
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45) !important;
}

.footer-contact a {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-social a {
  color: var(--color-grey-warm);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-credit {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(156, 150, 152, 0.12);
}

.footer-credit p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-grey-mid);
}

.footer-credit a {
  color: var(--color-grey-warm);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--color-primary);
}

/* Sticky mobile call */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.65rem 0.85rem;
  background: rgba(14, 13, 19, 0.96);
  border-top: 1px solid rgba(0, 183, 191, 0.3);
  display: flex;
  justify-content: center;
}

.sticky-call .btn {
  width: min(100%, 420px);
}

@media (min-width: 960px) {
  .sticky-call {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo,
  .hero-title,
  .hero-lead,
  .hero-ctas {
    animation: none;
    opacity: 1;
  }

  .btn,
  .gallery-item img {
    transition: none;
  }

  .hero-bg {
    position: absolute;
    height: 100%;
  }
}
