/* ===========================================================
   The Grime Guys Brisbane
   Dark, industrial single-page site. One accent (wash teal).
   =========================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --bg:        #0d0f10;
  --bg-2:      #121517;
  --surface:   #171b1d;
  --surface-2: #1e2325;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --text:      #f0f3f2;
  --muted:     #99a3a2;
  --muted-2:   #6f7877;

  --accent:    #2fd6c6;   /* wash teal */
  --accent-2:  #24b7aa;
  --accent-ink:#042420;   /* dark text on accent */

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* radius scale: containers 16, inputs 12, chips/buttons pill */
  --r-lg: 16px;
  --r-md: 12px;
  --r-pill: 999px;

  --container: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ic--up { transform: rotate(-90deg); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(30px, 5vw, 52px);
  margin: 0;
}
.section__lead {
  color: var(--muted);
  max-width: 54ch;
  margin: 18px 0 0;
  font-size: 18px;
}
.section__head { margin-bottom: 44px; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: transparent;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  line-height: 1; white-space: nowrap;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg);
  border: 1.5px solid var(--_bd); cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn .ic { font-size: 17px; transition: transform .2s var(--ease); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

.btn--accent { --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent); }
.btn--accent:hover { --_bg: #43e4d4; --_bd: #43e4d4; transform: translateY(-2px); }
.btn--accent:hover .ic { transform: translateX(3px); }

.btn--line { --_bd: var(--line-2); --_fg: var(--text); backdrop-filter: blur(4px); }
.btn--line:hover { --_bd: var(--text); transform: translateY(-2px); background: rgba(255,255,255,.05); }

.btn--ghost { --_fg: var(--text); padding: 10px 14px; }
.btn--ghost:hover { background: rgba(255,255,255,.06); }

.btn:active { transform: translateY(0) scale(.985); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled] {
  background: rgba(13,15,16,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__row { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand__sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; gap: 6px; margin-left: 12px; }
.nav__links a {
  padding: 8px 13px; border-radius: var(--r-pill); font-size: 15px; color: var(--muted);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__call { font-size: 14px; color: var(--text); }
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.nav__toggle .ic { font-size: 20px; }

.nav__drawer { display: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: #0a0c0d;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
/* fallback / pre-load surface */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #101314 url("../images/work/hero-aggregate.jpg") center/cover no-repeat;
  filter: brightness(.5) saturate(.7);
}
.hero.is-live::before { opacity: 0; transition: opacity .6s ease; }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(9,11,12,.94) 0%, rgba(9,11,12,.72) 34%, rgba(9,11,12,.15) 62%, rgba(9,11,12,0) 80%),
    linear-gradient(0deg, rgba(9,11,12,.9) 0%, rgba(9,11,12,0) 40%),
    radial-gradient(120% 80% at 90% 0%, rgba(47,214,198,.10), transparent 55%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 40px; }

.eyebrow { display: inline-flex; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: .96;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 24px 0 0; max-width: 40ch;
  font-size: clamp(17px, 2.2vw, 20px); color: #cdd4d3;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__hint {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 30px 0 0; font-size: 13.5px; color: var(--muted);
  transition: opacity .5s ease;
}
.hero__hint .ic { font-size: 17px; color: var(--accent); }
.hero__hint.is-hidden { opacity: 0; }
@media (hover: none) { .hero__hint { display: none; } }

/* ===========================================================
   TRUST STRIP
   =========================================================== */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip__row {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  padding-block: 20px; align-items: center; justify-content: space-between;
}
.strip__item { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #cdd4d3; }
.strip__item .ic { font-size: 20px; color: var(--accent); }

/* ===========================================================
   SECTIONS (shared)
   =========================================================== */
.section { padding-block: clamp(72px, 11vw, 128px); }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  grid-column: span 4;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 26px;
  min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile__ic { font-size: 26px; color: var(--accent); margin-bottom: auto; }
.tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 14px 0 6px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.tile--wide { grid-column: span 7; }
.tile--w5 { grid-column: span 5; }
.tile--img { min-height: 300px; color: #fff; }
.tile--img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--img) center/cover no-repeat;
  transition: transform .5s var(--ease);
}
.tile--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(8,10,11,.92) 4%, rgba(8,10,11,.35) 46%, rgba(8,10,11,.12) 100%);
}
.tile--img:hover::before { transform: scale(1.05); }
.tile--img .tile__body { position: relative; z-index: 2; }
.tile--img h3 { color: #fff; font-size: 24px; }
.tile--img p { color: rgba(255,255,255,.82); }

.tag {
  display: inline-block; margin-bottom: 8px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ---------- Proof ---------- */
.proof__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.proof__figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.proof__figure img { width: 100%; height: 100%; object-fit: cover; }
.proof__figure--tall { grid-row: span 1; }
.proof__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px; font-size: 14.5px; color: #eaeeed;
  background: linear-gradient(0deg, rgba(8,10,11,.9), transparent);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pip {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: var(--r-pill);
}

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  counter-reset: none;
}
.step { position: relative; padding-top: 12px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: 54px; right: -14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--accent);
  position: relative; z-index: 1;
}
.step__ic { font-size: 24px; color: var(--text); margin: 22px 0 0; display: block; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 10px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 32ch; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.price {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 34px;
  display: flex; flex-direction: column;
}
.price__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0; }
.price__val { font-family: var(--font-display); color: var(--muted); font-size: 18px; margin: 0; }
.price__val--big { color: var(--text); font-size: 46px; letter-spacing: -.02em; }
.price__val--big span { font-size: 17px; color: var(--muted); margin-left: 6px; }
.price__desc { color: var(--muted); margin: 16px 0 22px; }

.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; }
.ticks .ic { font-size: 15px; color: var(--accent-ink); background: var(--accent); border-radius: var(--r-pill); padding: 4px; box-sizing: content-box; }
.price--main .btn { margin-top: auto; align-self: flex-start; }

.price--bins {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47,214,198,.14), transparent 60%),
    var(--surface-2);
  border-color: rgba(47,214,198,.28);
  position: relative; overflow: hidden;
}
.price__art { position: absolute; right: -18px; bottom: -18px; font-size: 150px; color: rgba(47,214,198,.10); }

/* ---------- Areas ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; color: #cdd4d3;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.areas__note { margin: 26px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Gallery ---------- */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.masonry figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }

/* ---------- Quote ---------- */
.quote { background: var(--bg-2); border-top: 1px solid var(--line); }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.quote__intro .section__lead { margin-bottom: 30px; }

.contact { display: grid; gap: 12px; }
.contact__card {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.contact__card:hover { border-color: var(--accent); transform: translateX(3px); background: var(--surface-2); }
.contact__card .ic { font-size: 22px; color: var(--accent); }
.contact__card span { display: flex; flex-direction: column; font-size: 15px; word-break: break-word; }
.contact__card strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* form */
.qform {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: #dfe5e4; }
.field__opt { color: var(--muted-2); font-weight: 400; }
.field input, .field textarea, .select select {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 13px 15px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .select select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,214,198,.18);
}
.select { position: relative; }
.select .ic { position: absolute; right: 15px; top: 50%; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--muted); font-size: 16px; }
.select select:invalid { color: var(--muted-2); }

.field__err { margin: 0; font-size: 13px; color: #ff8b7a; display: none; }
.field.has-err input, .field.has-err select { border-color: #ff8b7a; }
.field.has-err .field__err { display: block; }

.qform__note { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.qform__note.is-ok { color: var(--accent); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer__brand { display: flex; gap: 13px; align-items: center; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0; }
.footer__tag { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.footer__links, .footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__links a { color: var(--muted); font-size: 15px; width: max-content; }
.footer__links a:hover { color: var(--text); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #cdd4d3; font-size: 14.5px; word-break: break-word; }
.footer__contact a:hover { color: var(--accent); }
.footer__contact .ic { font-size: 18px; color: var(--accent); }

.footer__base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 22px; margin-top: 4px;
}
.footer__base p { margin: 0; color: var(--muted-2); font-size: 13.5px; }
.footer__top { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.footer__top:hover { color: var(--text); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
  .quote__grid { grid-template-columns: 1fr; gap: 34px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open] .nav__drawer {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,15,16,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
  }
  .nav__drawer a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__drawer .btn { margin-top: 12px; justify-content: center; border-bottom: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--w5 { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }

  .proof__grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step:not(:last-child)::after { display: none; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding-top: 0; }
  .step__num { grid-row: span 2; }
  .step__ic { display: none; }
  .step h3 { margin: 0; }
  .step p { grid-column: 2; max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .masonry { grid-template-columns: 1fr; }
  .strip__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .qform { padding: 22px; }
}
