/* The Garage Devs — "Clean Garage", mobile first.
   Base styles are the phone (360px up); wider screens only add.
   Every colour comes from the mascot: its teal (laptop and hair), the deep
   teal outline, the slate hood, the mint sweater and the lavender shading. */

:root {
  --floor: #f2f7f6;        /* pale mint-grey, the mascot's white with its sweater in it */
  --panel: #ffffff;
  --ink: #1c2a30;          /* body text */
  --slate: #384048;        /* the hood, the GARAGE letters */
  --ink-soft: #52636a;
  --line: #d9e7e4;
  --teal: #085058;         /* deep teal outline: buttons, links (white text reads on it) */
  --teal-2: #109890;       /* mascot teal: fills, active states, icons */
  --teal-tint: #dcefec;
  --mint: #c0e8e0;         /* the sweater */
  --lavender: #b0b0d8;     /* the face shading: the "reverse" accent */
  --radius: 16px;
  --max: 1120px;
  --gutter: 20px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;                      /* never a sideways page on a phone */
  padding-bottom: var(--dock-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: break-word; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons (48px+ touch targets) ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.ghost { border: 1.5px solid var(--slate); color: var(--ink); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn.primary:hover { background: var(--slate); }
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: 60px;
  /* same left/right edges as the page content below */
  padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--floor) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; margin-right: auto; flex: none; }
.brand img { height: 34px; width: auto; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink);
}
.menu-btn { display: none; }
.nav-lang { display: none; }
/* Phones with JS: the language switch lives in the menu, leaving room for the logo */
.js .top > .lang { display: none; }
.js nav a.nav-lang { display: block; text-align: center; font: 600 1rem var(--body); color: var(--ink-soft); border: 0; margin-top: 6px; }

/* Without JS the nav is a simple wrapped row under the logo. */
nav { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; order: 3; }
nav a { text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); }
.no-js .top { flex-wrap: wrap; }

/* With JS, phones get a Menu button and a drop-down sheet. */
.js .menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 .9rem var(--body); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.top.open .menu-icon { background: transparent; }
.top.open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.top.open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.js nav {
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
  background: var(--floor); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(29, 38, 44, .35);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.js .top.open nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.js nav a { font: 600 1.35rem var(--display); color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
.js nav a.nav-cta { border-bottom: 0; margin-top: 14px; background: var(--teal); color: #fff; text-align: center; border-radius: 999px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 48px; display: grid; gap: 32px; }
.eyebrow, .kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
h1 { font-size: clamp(2.35rem, 11vw, 5.2rem); font-weight: 800; margin: 12px 0 18px; }
h1 span { display: block; }
h1 .accent { color: var(--teal); }
.caret { display: inline-block; width: .08em; height: .82em; background: var(--teal-2); margin-left: .08em; vertical-align: -.04em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.075rem; color: var(--ink-soft); max-width: 36em; }
.ctas { display: grid; gap: 10px; margin-top: 26px; }

/* Phones: no mascot here (it is in the logo above), just the gearbox card. */
.hero-art { display: grid; }
.mascot { display: none; }

/* ---------- the gearbox ---------- */
.gearbox {
  margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.gearbox svg { width: 112px; height: auto; overflow: visible; }
.gate { fill: none; stroke: var(--slate); stroke-width: 6; stroke-linecap: round; opacity: .18; }
.gear circle { fill: var(--panel); stroke: var(--slate); stroke-width: 3; transition: fill .25s ease; }
.gear text { font: 700 17px var(--display); text-anchor: middle; fill: var(--ink); }
.gear.on circle { fill: var(--teal-2); stroke: var(--teal); }
.gear.on text { fill: #fff; }
.gear[data-gear="R"].on circle { fill: var(--lavender); stroke: #8c8cc4; }
.gear[data-gear="R"].on text { fill: var(--slate); }
.knob { fill: var(--teal-2); stroke: var(--slate); stroke-width: 3; }
.gear-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.gear-labels li { color: var(--ink-soft); transition: color .2s ease; }
.gear-labels li b { font-family: var(--mono); color: var(--ink); display: inline-block; width: 1.4em; }
.gear-labels li.on { color: var(--ink); font-weight: 600; }
.gearbox figcaption { grid-column: 1 / -1; font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.band { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter); border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.75rem, 7.4vw, 3.25rem); font-weight: 700; margin: 8px 0 24px; max-width: 18em; }

.products { display: grid; gap: 12px; }
.product {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 10px;
}
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product h3 { font-size: 1.6rem; }
.product p { color: var(--ink-soft); }
.gear-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font: 700 .9rem var(--display); flex: none; }
.gear-chip.r { background: #e6e6f5; color: #45457a; }
.tag { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.visit { font-weight: 600; text-decoration: none; color: var(--teal); overflow-wrap: anywhere; padding: 6px 0; }
/* The whole card is the link target on touch screens. */
.visit::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.product:active { transform: scale(.99); }

.skills { display: grid; gap: 0; }
.skill { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.skill:first-child { border-top: 2px solid var(--ink); }
.skill .num { font-family: var(--mono); font-size: .8rem; color: var(--teal); padding-top: 4px; }
.skill h3 { font-size: 1.2rem; margin-bottom: 4px; }
.skill p { color: var(--ink-soft); }

.past { display: grid; gap: 24px; }
.past-stat { background: var(--slate); color: #fff; border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.past-stat .gear-chip { grid-row: span 2; }
.past-stat strong { font: 800 3.4rem/1 var(--display); color: var(--mint); letter-spacing: -0.04em; }
.past-stat span:last-child { color: #d6e4e2; }
.past h2 { margin-bottom: 14px; }
.chips-label { font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 24px 0 10px; }
.sectors { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors.builds li { background: var(--teal-tint); border-color: transparent; color: var(--teal); font-weight: 600; }
.sectors li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }

/* Contact: big rows you can hit with a thumb */
.contact .lead { margin: -10px 0 22px; }
.actions { display: grid; gap: 10px; }
.action {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
}
.action svg { width: 24px; height: 24px; fill: var(--teal-2); flex: none; }
.action span { display: grid; min-width: 0; }
.action b { font-size: 1rem; }
.action small { color: var(--ink-soft); font-size: .95rem; overflow-wrap: anywhere; }
.action.wa { background: var(--teal); border-color: var(--teal); color: #fff; }
.action.wa svg { fill: #fff; }
.action.wa small { color: var(--mint); }

/* Footer */
.bottom { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); display: grid; gap: 14px; color: var(--ink-soft); font-size: .875rem; }
.bottom img { width: min(320px, 100%); }

/* Phones: sticky WhatsApp / Call bar */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--floor) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock.show { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--slate); color: var(--ink); }
.dock a.dock-wa { background: var(--teal); border-color: var(--teal); color: #fff; }
body:has(.dock.show) { --dock-h: 76px; }

/* ---------- tablet (481px+) ---------- */
@media (min-width: 481px) {
  :root { --gutter: 28px; }
  .ctas { display: flex; flex-wrap: wrap; }
  .actions { grid-template-columns: 1fr 1fr; }
  .action.wa { grid-column: 1 / -1; }
  .brand img { height: 36px; }
}

/* ---------- desktop (769px+) ---------- */
@media (min-width: 769px) {
  :root { --gutter: 32px; }
  body { font-size: 1.0625rem; }
  .top { min-height: 72px; }
  .brand img { height: 40px; }
  .js .menu-btn { display: none; }
  .js .top > .lang { display: inline-flex; }
  .js nav a.nav-lang { display: none; }
  .js nav, nav {
    position: static; order: 0; width: auto; flex-direction: row; align-items: center; gap: 2px; padding: 0; margin-left: 12px;
    background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .js nav a, nav a { display: inline-flex; align-items: center; min-height: 40px; font: 500 .95rem var(--body); color: var(--ink-soft); padding: 0 12px; border: 0; border-radius: 999px; margin: 0; }
  .js nav a:hover, nav a:hover { color: var(--ink); background: var(--panel); }
  .js nav a.nav-cta { background: var(--teal); color: #fff; margin: 0 0 0 6px; padding: 0 18px; }
  .lang { order: 5; margin-left: 8px; min-height: 40px; }

  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .lead { font-size: 1.2rem; }
  .hero-art {
    border-radius: 28px; padding: 28px 24px 24px; gap: 18px; justify-items: center;
    background: radial-gradient(circle, #c9dedb 1.6px, transparent 1.7px) 0 0 / 22px 22px, var(--panel);
    border: 1px solid var(--line);
  }
  .mascot { display: block; width: min(220px, 55%); filter: drop-shadow(0 16px 22px rgba(29, 38, 44, .14)); }
  .gearbox { width: 100%; background: var(--floor); border: 0; grid-template-columns: 150px 1fr; }
  .gearbox svg { width: 150px; }

  .band { padding: 80px var(--gutter); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product { padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .product:hover { transform: translateY(-4px); border-color: var(--teal-2); box-shadow: 0 14px 30px rgba(29, 38, 44, .08); }
  .skills { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .skill { grid-template-columns: 1fr; border-top: 3px solid var(--ink); padding-top: 14px; }
  .skill:first-child { border-top-width: 3px; }
  .skill h3 { font-size: 1.45rem; }
  .past { grid-template-columns: 280px 1fr; align-items: start; }
  .past-stat { grid-template-columns: 1fr; row-gap: 6px; padding: 26px; }
  .past-stat .gear-chip { grid-row: auto; }
  .past-stat strong { font-size: 5rem; margin-top: 10px; }
  /* WhatsApp + Call share the first row, the three emails the second */
  .actions { grid-template-columns: repeat(6, 1fr); }
  .action { grid-column: span 2; }
  .action.wa, .action[href^="tel:"] { grid-column: span 3; }
  .bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .bottom img { width: 240px; flex: none; }
  .bottom span { text-align: right; }
  .dock { display: none; }
  body:has(.dock.show) { --dock-h: 0px; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product, .dock, .js nav { transition: none; }
}
