/* ============================================================
   MAVRICK — shared stylesheet
   Brand: dark canvas, warm cream → orange → red accent.
   Edit the variables below to recolor the whole site.
   ============================================================ */

:root {
  --bg:      #080808;
  --bg-2:    #0e0e10;
  --panel:   #141416;
  --text:    #f5f1ea;
  --muted:   #a7a299;
  --line:    rgba(255,255,255,0.12);

  --c1: #fbe7c6;   /* cream  */
  --c2: #f0922e;   /* orange */
  --c3: #e23b3b;   /* red    */
  --accent-grad: linear-gradient(100deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);

  --maxw: 1240px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c2); color: #1a0d00; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c2); font-weight: 700; margin-bottom: 18px;
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Dotted background (site-wide) ---------------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background-color: var(--bg);
  background-image: radial-gradient(circle, transparent 1.8px, rgba(255,255,255,0.045) 2.8px, transparent 4px);
  background-size: 8px 8px;
  pointer-events: none;
}

/* ---------------- Wander line overlay (built by JS) ---------------- */
#wander-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
#wander-orb {
  position: fixed; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--c1); box-shadow: 0 0 12px 3px rgba(240,146,46,0.7); z-index: 1; pointer-events: none;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(8px);
  background: rgba(8,8,8,0.35);
  border-bottom: 1px solid transparent;
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  padding: 12px 28px;
  background: rgba(8,8,8,0.8);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: 2px; }
.brand span { color: var(--c2); }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14px; letter-spacing: .5px; color: var(--muted);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent-grad); transition: width .25s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.cta-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #111; background: #fff;
  padding: 12px 20px; border: 1px solid #fff; border-radius: 2px;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.cta-btn:hover { background: var(--c3); border-color: var(--c3); color: #fff; transform: translateY(-1px); }

.burger { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
}
.hero-corner { position: absolute; width: 34px; height: 34px; z-index: 3; pointer-events: none; }
.hero-corner.tl { top: 24px;  left: 24px;  border-left: 1.5px solid rgba(255,255,255,0.45); border-top: 1.5px solid rgba(255,255,255,0.45); }
.hero-corner.tr { top: 24px;  right: 24px; border-right:1.5px solid rgba(255,255,255,0.45); border-top: 1.5px solid rgba(255,255,255,0.45); }
.hero-corner.bl { bottom: 24px; left: 24px; border-left: 1.5px solid rgba(255,255,255,0.45); border-bottom:1.5px solid rgba(255,255,255,0.45); }
.hero-corner.br { bottom: 24px; right: 24px; border-right:1.5px solid rgba(255,255,255,0.45); border-bottom:1.5px solid rgba(255,255,255,0.45); }

.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(80px, 19vw, 320px);
  line-height: .86; letter-spacing: -.02em; color: #fff;
  display: flex; flex-wrap: wrap; cursor: default;
}
.hero-title .letter {
  display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1), color .25s ease;
  will-change: transform;
}
.hero-title .letter:hover {
  transform: translateY(-.12em) scale(1.06);
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  margin-top: 28px; max-width: 640px; font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
}
.hero-tagline strong { color: var(--text); font-weight: 600; }

/* ---------------- Section scaffolding ---------------- */
.section { padding: 110px 0; position: relative; }
.section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 66px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch;
}
.section .lead { color: var(--muted); max-width: 60ch; margin-top: 20px; font-size: 18px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Logo marquee ---------------- */
.marquee { position: relative; overflow: hidden; margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 28px; }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto; height: 42px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .5px;
  color: #cfcabf; opacity: .72; transition: opacity .2s ease, color .2s ease; white-space: nowrap;
}
.marquee__item:hover { opacity: 1; color: #fff; }
.marquee__item img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------------- Testimonials ---------------- */
.tgrid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; margin-top: 56px; }
.video-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.video-card iframe, .video-card video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-card .placeholder { color: var(--muted); text-align: center; padding: 20px; }
.video-card .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-grad);
  display: grid; place-items: center; color: #1a0d00; font-size: 22px; margin: 0 auto 14px; }
.client-meta { margin-top: 18px; }
.client-meta .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.client-meta .role { color: var(--c2); font-size: 14px; letter-spacing: .5px; }
.reviews { display: flex; flex-direction: column; gap: 16px; }
.review {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
}
.review .stars { color: #f5b53d; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: 15px; color: #e7e3da; }
.review .who { margin-top: 10px; font-size: 13px; color: var(--muted); }
.google-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 40px; padding: 6px 14px; margin-top: 4px; }

/* ---------------- About parallax gallery ---------------- */
.about-stage { position: relative; margin-top: 70px; min-height: 560px; }
.about-stage .pimg {
  position: absolute; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); background: var(--panel);
}
.about-stage .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg.p1 { width: 38%; aspect-ratio: 3/4; left: 2%;  top: 0; }
.pimg.p2 { width: 30%; aspect-ratio: 1/1; left: 44%; top: 90px; }
.pimg.p3 { width: 30%; aspect-ratio: 4/5; right: 2%; top: 30px; }
.pimg.p4 { width: 26%; aspect-ratio: 4/3; left: 30%; bottom: 0; }

/* ---------------- Stats counters ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat .num {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6vw, 88px); line-height: 1;
}
.stat .num .suffix { font-size: .5em; vertical-align: super; }
.stat .label { color: var(--muted); margin-top: 8px; font-size: 15px; letter-spacing: .3px; }

/* ---------------- Services list ---------------- */
.svc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease;
}
.svc-row:hover { background: rgba(255,255,255,.03); padding-left: 22px; }
.svc-row .idx { font-family: var(--font-display); color: var(--c2); font-weight: 800; }
.svc-row h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 36px); }
.svc-row p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
.svc-row .arrow { font-size: 26px; color: var(--muted); transition: transform .25s ease, color .25s ease; }
.svc-row:hover .arrow { transform: translateX(8px); color: var(--c2); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.form { display: grid; gap: 16px; }
.form label { font-size: 13px; letter-spacing: .5px; color: var(--muted); display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 13px 14px; font-family: inherit; font-size: 15px; transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c2); }
.form textarea { min-height: 130px; resize: vertical; }
.form button { justify-self: start; }

/* ---------------- Footer ---------------- */
.footer-mavrick {
  font-family: var(--font-display); font-weight: 900; text-align: center;
  font-size: clamp(64px, 22vw, 360px); line-height: .8; letter-spacing: -.02em;
  color: #fff; padding: 60px 0 0; user-select: none;
}
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-cols h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-cols a { display: block; color: #cfcabf; padding: 5px 0; font-size: 15px; transition: color .2s ease; }
.footer-cols a:hover { color: var(--c2); }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: #cfcabf; transition: all .2s ease; }
.socials a:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { padding: 160px 0 70px; position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 9vw, 140px); line-height: .9; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); max-width: 60ch; margin-top: 22px; font-size: 19px; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(240,146,46,.5); }
.card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #1b1b1f, #0d0d0f); display: grid; place-items: center; color: #3a3a40; font-family: var(--font-display); font-weight: 800; }
.card .body { padding: 22px; }
.card .tag { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c2); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }

.rich { max-width: 760px; }
.rich h2 { font-family: var(--font-display); font-size: clamp(26px,4vw,40px); margin: 44px 0 14px; }
.rich h3 { font-family: var(--font-display); font-size: 22px; margin: 28px 0 10px; }
.rich p { color: #d7d3ca; margin-bottom: 16px; }
.rich ul { color: #d7d3ca; margin: 0 0 16px 22px; }
.rich li { margin-bottom: 8px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    gap: 0; background: #0c0c0e; border-top: 1px solid var(--line); padding: 10px 28px; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tgrid, .contact-grid, .footer-cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .about-stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-stage .pimg { position: static; width: 100% !important; }
  .svc-row { grid-template-columns: 40px 1fr; }
  .svc-row .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  #wander-orb { display: none; }
  .reveal { opacity: 1; transform: none; }
}
