/* Otogearbox site styles */

:root {
  /* One dark palette for every device, whatever its light/dark setting */
  color-scheme: dark;
  --navy: #13175e;
  --navy-2: #1d2380;
  --ink: #f2f3fa;
  --text: #d4d6e4;
  --muted: #9a9db3;
  --bg: #0c0e1c;
  --bg-alt: #13162a;
  --line: #262a45;
  --yellow: #ffd21f;
  --red: #d7262b;
  --sky: #8fd3f4;
  --card: #161a31;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; color: var(--ink); line-height: 1.1; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }


/* Header */
header.top {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  box-shadow: 0 2px 0 var(--red);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: Archivo; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.brand-name span { color: var(--yellow); }
nav.links { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
nav.links a { text-decoration: none; opacity: .85; }
nav.links a:hover { opacity: 1; color: var(--yellow); }
@media (min-width: 900px) { nav.links { display: flex; } }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.btn-yellow { background: var(--yellow); color: #14162e; }
.btn-yellow:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.top .btn { display: none; }
.call-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--yellow); color: #14162e; }
@media (min-width: 560px) { .top .btn { display: inline-flex; } .call-icon { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(143,211,244,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0b0e3d 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero .wrap { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 96px; padding-bottom: 104px; } }
.eyebrow {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 12px; border-radius: 4px;
}
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 62px); font-weight: 900; margin: 20px 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 18px; color: #cdd0ee; max-width: 560px; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; max-width: 520px; }
.stat { border-left: 3px solid var(--yellow); padding-left: 12px; }
.stat b { display: block; font-family: Archivo; font-size: 30px; color: #fff; font-weight: 800; }
.stat span { font-size: 13px; color: #aeb2d8; }

/* Hero parts showcase: the 4 parts from the logo, cross-fading over a soft glow */
.showcase { justify-self: center; width: 100%; max-width: 340px; }
@media (min-width: 960px) { .showcase { max-width: 520px; } }
.stage { position: relative; aspect-ratio: 1; }
.stage::before { /* warm brand glow behind the part */
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,31,.30) 0%, rgba(255,210,31,.10) 40%, transparent 68%);
}
.stage::after { /* floor shadow the part floats above */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 7%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, transparent 72%);
  filter: blur(4px); animation: shadow-breathe 6s ease-in-out infinite;
}
.slide {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; z-index: 1;
  opacity: 0; transform: scale(.82) rotate(-10deg); filter: blur(8px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .9s ease;
}
.slide.is-active { opacity: 1; transform: none; filter: none; }
.slide.is-leaving { opacity: 0; transform: scale(1.08) rotate(8deg); filter: blur(8px); }
.part { /* holds the shadow so it stays put while the image spins */
  display: grid; place-items: center; width: 80%; height: 80%;
  filter: drop-shadow(0 28px 22px rgba(0,0,0,.45)) drop-shadow(0 6px 6px rgba(0,0,0,.35));
  animation: float 6s ease-in-out infinite;
}
.part img { width: 100%; height: 100%; object-fit: contain; }
/* A real product photo (with its backing sheet) rather than a cut-out */
.part img.photo { width: auto; max-width: 100%; border-radius: 16px; }
.slide.is-active img.spin { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow-breathe { 50% { transform: scaleX(.85); opacity: .7; } }
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.part-name { font-family: Archivo; font-weight: 800; color: #fff; font-size: 18px; min-height: 1.2em; transition: opacity .4s ease; }
.part-name small { display: block; font-family: Inter; font-weight: 500; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow); }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.3); transition: width .3s ease, background .3s ease;
}
.dots button[aria-current="true"] { width: 28px; background: var(--yellow); }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-leaving { transform: none; filter: none; transition: opacity .4s ease; }
  .slide.is-active img.spin, .part, .stage::after { animation: none; }
}
.brand-logo { height: 44px; width: auto; display: block; }
.foot-logo { width: 72px; height: auto; display: block; margin-bottom: 14px; }

/* Sections */
section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head .kicker { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Products */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(19,23,94,.10); border-color: transparent; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Why */
.why { display: grid; gap: 40px; }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 1fr; align-items: center; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checks .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-weight: 900; }
.checks b { color: var(--ink); display: block; font-family: Archivo; font-size: 17px; }
.checks span { color: var(--muted); font-size: 15px; }
.feature-panel {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
}
.feature-panel h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.feature-panel p { color: #cdd0ee; margin: 0 0 22px; }
.feature-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
  border: 26px dashed rgba(255,210,31,.18); border-radius: 50%;
}

/* Branches */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.branch { display: flex; flex-direction: column; gap: 14px; }
.branch-photo {
  position: relative; overflow: hidden; width: calc(100% + 48px); margin: -24px -24px 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-alt);
}
.branch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.branch-photo .track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.branch-photo .track::-webkit-scrollbar { display: none; }
.branch-photo .track img { flex: 0 0 100%; scroll-snap-align: start; }
.branch-photo .count {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700;
}
.branch-photo .nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.branch-photo .prev { left: 10px; }
.branch-photo .next { right: 10px; }
.branch-photo:hover .nav, .branch-photo .nav:focus-visible { opacity: 1; }
@media (hover: none) { .branch-photo .nav { display: none; } }
.branch-photo.is-empty {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--navy), var(--bg-alt)); color: var(--muted); font-size: 14px;
}
.branch-photo.is-empty img { width: 64px; height: auto; opacity: .55; }
.branch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.branch h3 { font-size: 20px; font-weight: 800; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 8px; border-radius: 4px; }
.branch .addr { color: var(--muted); font-size: 15px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; flex: 1; }
.branch .addr svg { margin-top: 3px; color: var(--red); }
.branch .phone { font-family: Archivo; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .5px; }
.branch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.branch-actions .btn-dir { grid-column: 1 / -1; }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy-2); }

/* People */
.people { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: flex; gap: 18px; align-items: center; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--yellow);
  font-family: Archivo; font-weight: 800; font-size: 22px;
}
.person .role { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.person h3 { font-size: 20px; margin: 2px 0 6px; }
.person a.num { color: var(--ink); font-weight: 600; text-decoration: none; }
.person small { color: var(--muted); }

/* Request form */
.request { display: grid; gap: 32px; }
@media (min-width: 960px) { .request { grid-template-columns: .9fr 1.1fr; align-items: start; } }
form.req { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 16px; }
@media (min-width: 560px) { form.req { padding: 32px; grid-template-columns: 1fr 1fr; } form.req .full { grid-column: 1 / -1; } }
label { font-size: 14px; font-weight: 600; color: var(--ink); display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }

/* Footer */
footer { background: #0a0c2e; color: #b4b7d6; padding: 56px 0 28px; font-size: 15px; }
.foot { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { color: #fff; font-family: Archivo; margin: 0 0 12px; font-size: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--yellow); }
.legal { padding-right: 64px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Floating WhatsApp */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fab svg { width: 30px; height: 30px; }
