/* =====================================================
   ALLIGATOR CONSTRUCTION — styles.css
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  --asphalt: #0E100D;
  --surface: #181A16;
  --surface-2: #20231E;
  --concrete: #E8E6E0;
  --steel: #9A9D98;
  --steel-dim: #5E625C;
  --amber: #F4A81D;
  --amber-dark: #C9870F;
  --gator: #4E6A3A;
  --line: rgba(232, 230, 224, 0.10);

  --maxw: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--concrete);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel); margin: 0 0 22px;
}
.eyebrow__bar { width: 34px; height: 2px; background: var(--amber); display: inline-block; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 16px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn i { font-size: 0.85em; }
.btn--primary { background: var(--amber); color: var(--asphalt); }
.btn--primary:hover { background: var(--concrete); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--concrete); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ============================================ 3D ANIMATED BACKGROUND ============================================ */
#bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg-scene canvas { display: block; }
#bg-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 85% at 50% 28%, transparent 0%, rgba(14, 16, 13, 0.35) 68%, rgba(14, 16, 13, 0.72) 100%);
}
/* Keep all page content above the animated background */
.hero, .marquee, .services, .projects, .process, .trust, .stats, .faq, .quote, .footer { position: relative; z-index: 1; }

/* ============================================ NAVBAR ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14, 16, 13, 0.92); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 36px; width: auto; }
.brand__name { font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 0.08em; color: var(--concrete); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: 0.95rem; color: var(--steel); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--concrete); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--concrete) !important; border: 1px solid var(--line);
  padding: 11px 18px; border-radius: var(--radius);
}
.nav__cta:hover { border-color: var(--amber); color: var(--amber) !important; }
.nav__cta i { font-size: 0.8em; color: var(--amber); }
.nav__toggle { display: none; background: none; border: none; color: var(--concrete); font-size: 1.4rem; cursor: pointer; padding: 6px; }

/* ============================================ HERO ============================================ */
.hero {
  position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 140px 0 60px; overflow: hidden;
}
.hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 3; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,13,0.55), rgba(14,16,13,0.55)); }
.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 75% 40%, transparent 0%, rgba(14, 16, 13, 0.55) 70%),
    linear-gradient(90deg, var(--asphalt) 0%, rgba(14, 16, 13, 0.65) 45%, transparent 75%);
}
.hero__content { position: relative; z-index: 3; max-width: 720px; }
.hero__title {
  font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95; letter-spacing: 0.01em; margin: 0 0 26px; text-transform: uppercase;
}
.hero__title-accent { color: var(--amber); }
.hero__lede { font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--steel); max-width: 540px; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 48px;
  margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); max-width: 720px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num { font-family: "Anton", sans-serif; font-size: 2.4rem; color: var(--concrete); line-height: 1; }
.hero__stat-label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-top: 8px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--steel); font-size: 1.1rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ============================================ MARQUEE ============================================ */
.marquee { background: var(--amber); color: var(--asphalt); overflow: hidden; border-top: 1px solid var(--asphalt); border-bottom: 1px solid var(--asphalt); }
.marquee__track { display: flex; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee__item {
  font-family: "Anton", sans-serif; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 16px 30px; display: inline-flex; align-items: center; gap: 30px; white-space: nowrap;
}
.marquee__item i { font-size: 0.35rem; opacity: 0.7; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================ SECTION HEADINGS ============================================ */
.section__head { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; text-align: center; }
.section__title {
  font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 16px;
}
.section__sub { color: var(--steel); max-width: 520px; margin: 0 auto; }

/* ============================================ SERVICES ============================================ */
.services { padding: 110px 0; }
.services .eyebrow { justify-content: center; }
.services__grid { max-width: var(--maxw); margin: 60px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); z-index: 3;
}
.card:hover { transform: translateY(-6px); border-color: var(--steel-dim); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card__media { position: relative; height: 210px; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__index {
  position: absolute; top: 14px; right: 14px; font-family: "Anton", sans-serif; font-size: 0.95rem;
  color: var(--concrete); background: rgba(14, 16, 13, 0.72); padding: 4px 11px; border-radius: var(--radius);
}
.card__body { padding: 0 32px 38px; }
.card__icon {
  position: relative; z-index: 2; width: 58px; height: 58px; margin: -29px 0 22px;
  display: grid; place-items: center; background: var(--asphalt); border: 1px solid var(--line);
  color: var(--amber); border-radius: var(--radius); font-size: 1.35rem;
}
.card__title { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.6rem; text-transform: uppercase; margin: 0 0 12px; }
.card__text { color: var(--steel); font-size: 0.98rem; margin: 0; }

/* ============================================ PROJECTS / GALLERY ============================================ */
.projects { padding: 110px 0; }
.projects .eyebrow { justify-content: center; }
.projects__filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 44px auto 0; padding: 0 28px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--steel);
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: var(--radius); cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter:hover { color: var(--concrete); border-color: var(--steel-dim); }
.filter.is-active { background: var(--amber); color: var(--asphalt); border-color: var(--amber); }

.projects__grid { max-width: var(--maxw); margin: 36px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  position: relative; display: block; border: none; padding: 0; margin: 0; width: 100%; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3;
  text-align: left; font-family: inherit;
}
.project.is-hidden { display: none; }
.project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project:hover .project__img { transform: scale(1.07); }
.project__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, transparent 35%, rgba(14, 16, 13, 0.9));
}
.project__tag {
  align-self: flex-start; background: var(--amber); color: var(--asphalt);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius); margin-bottom: 10px;
}
.project__title { font-family: "Anton", sans-serif; font-size: 1.3rem; text-transform: uppercase; color: var(--concrete); margin: 0 0 5px; line-height: 1.1; }
.project__meta { color: var(--steel); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
.project__meta i { color: var(--amber); }

/* ============================================ LIGHTBOX ============================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 48px;
  background: rgba(8, 9, 7, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 1000px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__figure figcaption { color: var(--concrete); font-family: "Archivo", sans-serif; font-size: 0.95rem; text-align: center; }
.lightbox__close {
  position: absolute; top: 22px; right: 24px; background: none; border: none;
  color: var(--concrete); font-size: 1.7rem; cursor: pointer; line-height: 1;
}
.lightbox__close:hover { color: var(--amber); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(232, 230, 224, 0.08); border: 1px solid var(--line);
  color: var(--concrete); font-size: 1.1rem; display: grid; place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__nav:hover { background: var(--amber); color: var(--asphalt); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* ============================================ PROCESS ============================================ */
.process { padding: 110px 0; }
.process .eyebrow { justify-content: center; }
.process__grid { max-width: var(--maxw); margin: 60px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--steel-dim); }
.step__num { font-family: "Anton", sans-serif; font-size: 2.4rem; color: var(--steel-dim); line-height: 1; display: block; }
.step__icon {
  width: 52px; height: 52px; margin: 18px 0; display: grid; place-items: center;
  background: rgba(244, 168, 29, 0.12); color: var(--amber); border-radius: var(--radius); font-size: 1.2rem;
}
.step__title { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.35rem; text-transform: uppercase; margin: 0 0 10px; }
.step__text { color: var(--steel); font-size: 0.95rem; margin: 0; }

/* ============================================ TRUST / SAFETY ============================================ */
.trust { background: rgba(20, 22, 18, 0.92); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 100px 28px; }
.trust__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.trust__text { color: var(--steel); max-width: 440px; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust__item {
  background: var(--asphalt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.trust__item:hover { transform: translateY(-4px); border-color: var(--steel-dim); }
.trust__icon { color: var(--amber); font-size: 1.5rem; margin-bottom: 14px; }
.trust__title { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.25rem; text-transform: uppercase; margin: 0 0 6px; }
.trust__detail { color: var(--steel); font-size: 0.9rem; margin: 0; }

/* ============================================ STATS BAND ============================================ */
.stats { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.stats__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats__item { display: flex; flex-direction: column; align-items: center; }
.stats__num { font-family: "Anton", sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--amber); line-height: 1; }
.stats__label { font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin-top: 14px; }

/* ============================================ FAQ ============================================ */
.faq { padding: 110px 0; }
.faq .eyebrow { justify-content: center; }
.faq__list { max-width: 820px; margin: 50px auto 0; padding: 0 28px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 44px 24px 0; font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--concrete); transition: color 0.2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 4px; top: 25px; color: var(--amber); font-size: 0.9rem;
}
.faq__item[open] summary::after { content: "\f068"; }
.faq__item summary:hover { color: var(--amber); }
.faq__item p { color: var(--steel); margin: 0 0 26px; max-width: 720px; }

/* ============================================ REQUEST A QUOTE ============================================ */
.quote { padding: 110px 28px; }
.quote__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.quote__text { color: var(--steel); max-width: 420px; }
.quote__contacts { list-style: none; padding: 0; margin: 32px 0 0; }
.quote__contacts li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--concrete); }
.quote__contacts li:last-child { border-bottom: 1px solid var(--line); }
.quote__contacts i { color: var(--amber); width: 18px; text-align: center; }
.quote__contacts a:hover { color: var(--amber); }
.quote__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.field { display: flex; flex-direction: column; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font-family: "Archivo", sans-serif; font-size: 1rem; color: var(--concrete);
  background: var(--asphalt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field textarea { resize: vertical; }
.field select { cursor: pointer; }
.quote__submit { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }

/* ============================================ FOOTER ============================================ */
.footer { padding: 70px 28px; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer .brand { flex-direction: column; gap: 10px; }
.footer__note { color: var(--steel); margin: 0; max-width: 460px; }
.footer__copy { color: var(--steel-dim); font-size: 0.85rem; margin: 0; }

/* ============================================ SCROLL REVEAL ============================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }
  .quote__inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--surface); border-left: 1px solid var(--line); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 0 36px;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: inline-block; z-index: 101; }
  .hero { padding-top: 120px; }
  .hero__stats { gap: 30px; }
  .hero__stat-num { font-size: 1.9rem; }
  .projects__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .quote__form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .lightbox { padding: 20px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

/* ============================================ REDUCED MOTION ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero__scroll { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; }
}