/* Fox Installations — Shared Stylesheet */

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background: #0A0A0A; color: #fff; font-family: 'Inter', sans-serif; }

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #E87B1A; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.font-heading { font-family: 'Bebas Neue', sans-serif; }
.font-body    { font-family: 'Inter', sans-serif; }

.text-outline-orange {
  -webkit-text-stroke: 3px #E87B1A;
  color: transparent;
}
@media (max-width: 767px) {
  .text-outline-orange { -webkit-text-stroke: 0; color: #E87B1A; }
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise-1 { animation: riseIn 0.75s cubic-bezier(0.16,1,0.3,1) forwards; }
.rise-2 { animation: riseIn 0.75s 0.12s cubic-bezier(0.16,1,0.3,1) forwards; opacity:0; }
.rise-3 { animation: riseIn 0.75s 0.24s cubic-bezier(0.16,1,0.3,1) forwards; opacity:0; }
.rise-4 { animation: riseIn 0.75s 0.36s cubic-bezier(0.16,1,0.3,1) forwards; opacity:0; }
.rise-5 { animation: riseIn 0.75s 0.52s cubic-bezier(0.16,1,0.3,1) forwards; opacity:0; }
.rise-6 { animation: riseIn 0.75s 0.68s cubic-bezier(0.16,1,0.3,1) forwards; opacity:0; }

/* ── Tag pill ─────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(232,123,26,0.45);
  color: #E87B1A;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #E87B1A;
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active       { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

#mobile-menu       { display: none; }
#mobile-menu.open  { display: flex; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-orange {
  background: #E87B1A; color: #0A0A0A;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 2rem; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-orange:hover { background: #C96A0F; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 2rem; display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: #E87B1A; color: #E87B1A; transform: translateY(-1px); }

/* ── Service strip rows ───────────────────────────────────────────────────── */
.svc-row {
  display: flex; align-items: center; gap: 0;
  padding: 2.25rem 0 2.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.svc-row-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: #E87B1A;
  transition: width 0.22s ease;
}
.svc-row:hover .svc-row-bar { width: 3px; }
.svc-row-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem;
  color: rgba(232,123,26,0.28); letter-spacing: 0.1em;
  min-width: 4rem; flex-shrink: 0; transition: color 0.22s;
}
.svc-row:hover .svc-row-num { color: rgba(232,123,26,0.65); }
.svc-row-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: white; letter-spacing: 0.04em; line-height: 1;
  min-width: 20rem; flex-shrink: 0; transition: color 0.22s;
}
.svc-row:hover .svc-row-name { color: #E87B1A; }
.svc-row-desc {
  flex: 1; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  font-weight: 300; line-height: 1.7; padding: 0 2.5rem;
}
.svc-row-cta {
  font-family: 'Inter', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(232,123,26,0.5); min-width: 7.5rem;
  text-align: right; flex-shrink: 0; transition: color 0.22s;
}
.svc-row:hover .svc-row-cta { color: #E87B1A; }
@media (max-width: 768px) {
  .svc-row { flex-wrap: wrap; gap: 0.5rem 0; padding-right: 1rem; }
  .svc-row-name { min-width: unset; width: 100%; padding-left: 0; }
  .svc-row-desc { padding: 0.5rem 0 0; }
  .svc-row-cta  { text-align: left; width: 100%; }
}

/* ── Portfolio cards ──────────────────────────────────────────────────────── */
.portfolio-card          { position: relative; overflow: hidden; }
.portfolio-card img      { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.portfolio-card:hover img { transform: scale(1.07); }
.portfolio-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0) 60%);
}

/* ── Form inputs ──────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: white; padding: 0.875rem 1rem;
  font-size: 0.85rem; font-family: 'Inter', sans-serif; font-weight: 300;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus        { border-color: #E87B1A; }
.form-input::placeholder { color: rgba(255,255,255,0.48); }
select.form-input option { background: #111; color: white; }

/* ── Contact icon ─────────────────────────────────────────────────────────── */
.contact-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,123,26,0.07);
  border: 1px solid rgba(232,123,26,0.28);
  font-size: 0.95rem;
}

/* ── Check icon ───────────────────────────────────────────────────────────── */
.check-icon {
  width: 1.2rem; height: 1.2rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,123,26,0.1);
  border: 1px solid rgba(232,123,26,0.32);
  color: #E87B1A; font-size: 0.5rem;
}

/* ── Hero decorative lines ────────────────────────────────────────────────── */
.hero-line-1 {
  position: absolute; top: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(232,123,26,0.3) 45%, rgba(232,123,26,0.05) 100%);
  transform: rotate(-10deg); transform-origin: top center;
}
.hero-line-2 {
  position: absolute; top: 0; width: 1px; height: 75%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.04) 100%);
  transform: rotate(-10deg); transform-origin: top center;
}

/* ── Stats divider ────────────────────────────────────────────────────────── */
.stats-divider { border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Commercial logo tiles ────────────────────────────────────────────────── */
.logo-tile {
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 0 2.5rem;
  opacity: 0.8; transition: opacity 0.3s;
}
.logo-tile:hover { opacity: 1; }
.logo-grid-4 .logo-tile:nth-child(1) img { width: 300px; height: 96px; }
.logo-grid-4 .logo-tile:nth-child(3) img { width: 225px; height: 72px; }
.logo-tile img {
  width: 150px; height: 48px; object-fit: contain;
  filter: grayscale(1); mix-blend-mode: multiply;
}

/* ── Page hero (sub-pages) ────────────────────────────────────────────────── */
.page-hero {
  background: #0A0A0A;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}

/* ── Portfolio filter buttons ─────────────────────────────────────────────── */
.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  background: transparent; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-btn:hover  { border-color: rgba(232,123,26,0.5); color: #E87B1A; }
.filter-btn.active { border-color: #E87B1A; color: #E87B1A; background: rgba(232,123,26,0.06); }

/* ── Grid helpers ─────────────────────────────────────────────────────────── */
.logo-grid-4       { grid-template-columns: repeat(4, 1fr); }
.grid-cols-3-stat  { grid-template-columns: repeat(3, 1fr); }
.cta-grid          { grid-template-columns: 1fr; }
#hero-stats        { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .cta-grid   { grid-template-columns: 1fr 1fr; }
  #hero-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .logo-grid-4      { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3-stat { grid-template-columns: 1fr; }
}

/* ── Service detail cards (services page) ─────────────────────────────────── */
.service-detail-card {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 2.5rem;
  transition: border-color 0.3s;
}
.service-detail-card:hover { border-color: rgba(232,123,26,0.35); }

/* ── Process steps ────────────────────────────────────────────────────────── */
.process-step { text-align: center; flex: 1; }
.process-divider {
  flex: 1; height: 1px;
  background: rgba(232,123,26,0.18);
  margin-top: 1.4rem; align-self: flex-start;
}
@media (max-width: 768px) {
  .process-divider { display: none; }
}

/* ── Real photography (v6) ───────────────────────────────────────────────── */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.88) 45%, rgba(10,10,10,0.55) 100%),
              linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 35%);
}
.hero-content { position: relative; z-index: 1; }

.job-card { cursor: pointer; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.job-card:focus-visible { outline: 2px solid #E87B1A; outline-offset: 3px; }
.job-count {
  position: absolute; top: 1rem; right: 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(10,10,10,0.75); color: rgba(255,255,255,0.75); padding: 0.35rem 0.6rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5,5,5,0.99); flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 1rem 4rem; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  width: 3rem; height: 3rem; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lb-btn:hover { background: #E87B1A; color: #0A0A0A; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.75rem; } .lb-next { right: 0.75rem; }
.lightbox-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 1.25rem 1.25rem; }
.lightbox-strip button { flex: 0 0 auto; width: 4.5rem; height: 3.25rem; padding: 0; border: 2px solid transparent; opacity: 0.5; cursor: pointer; background: none; }
.lightbox-strip button.active { border-color: #E87B1A; opacity: 1; }
.lightbox-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .lightbox-stage { padding: 0.5rem; } .lb-prev, .lb-next { top: auto; bottom: 0.5rem; transform: none; } }

/* Before / after slider */
.ba-wrap { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-height: 44rem; margin: 0 auto; user-select: none; }
.ba-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-wrap .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #E87B1A; transform: translateX(-1px); pointer-events: none; }
.ba-handle::after {
  content: '\2039 \203A'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #E87B1A; color: #0A0A0A;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label {
  position: absolute; top: 1rem; font-family: 'Inter', sans-serif; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.35rem 0.7rem; background: rgba(10,10,10,0.8); color: #fff; pointer-events: none;
}

/* Process strip (About) */
.process-photos { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin-top: 4.5rem; }
.process-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(0.25); }
@media (min-width: 768px) { .process-photos { grid-template-columns: repeat(4, 1fr); } }

/* ── Section joins: faded offset step (v6) ───────────────────────────────── */
.section-step { display: block; width: 100%; height: clamp(22px, 3.6vw, 52px); margin: -1px 0; position: relative; }
