/* Alindor - single-page site. Plain CSS, no build step. */

:root {
  --ink: #0e1116;
  --text: #1f2530;
  --muted: #5b6472;
  --line: #e4e7eb;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --accent: #f0b90b;        /* the one accent: safety yellow, kept from the previous Alindor site */
  --accent-dark: #d4a30a;
  --radius: 14px;
  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 36px; height: 36px; stroke-width: 1.4; }

.eyebrow {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); }
.eyebrow-on-dark { color: rgba(255, 255, 255, 0.65); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.8); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 0.95rem; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform 0.2s, top 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero: dark panel with the copy on the left, the workshop photo on the right half */
.hero { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero .lead { margin-top: 22px; max-width: 44ch; font-size: 1.15rem; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.65); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; }

@media (min-width: 900px) {
  .hero { min-height: min(720px, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  /* The photo starts where the text column ends: 46% of the window, but never left of the
     centered container's midpoint, so on wide or zoomed-out screens it can't slide under the headline. */
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: max(46%, calc(50% - 60px)); display: block; overflow: hidden; }
  .hero-media img { animation: slow-zoom 24s ease-out both; }
  .hero-media::after {
    /* fade the photo's left edge into the dark panel so the seam doesn't show */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(14, 17, 22, 0.55) 18%, rgba(14, 17, 22, 0) 42%);
  }
  .hero-inner { z-index: 1; }
  .hero .hero-inner > * { max-width: 41%; }
}
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-inner { padding-top: 44px; padding-bottom: 48px; }
  .hero-media img { aspect-ratio: 6 / 5; }
}
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Problem */
.point { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.point .icon-lg { color: var(--ink); margin-bottom: 22px; }
.point h3 { margin-bottom: 10px; }
.point p { color: var(--muted); }

/* Services */
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.service-title { display: flex; align-items: center; gap: 12px; }
.service-title .icon { width: 26px; height: 26px; }
.service-body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--accent); color: var(--ink); stroke-width: 2.4; width: 20px; height: 20px; }
.price-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font); font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.robots { margin-top: 64px; }
.robots-label { font-size: 1.35rem; margin-bottom: 22px; }
.robot-types { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.robot-types li { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color 0.2s; }
.robot-types li:hover { border-color: var(--ink); }
.robot-icon { display: block; width: 76px; height: 76px; padding: 10px; margin-bottom: 18px; border-radius: 14px; background: #fdf4d3; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.robot-icon .ac { stroke: var(--accent-dark); stroke-width: 2.2; }
.robot-types h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.robot-types p { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .robot-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Small phones: one card per row, icon beside the text, so long names never push past the screen. */
@media (max-width: 480px) {
  .robot-types { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .robot-types li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px; }
  .robot-icon { width: 60px; height: 60px; padding: 8px; margin: 0; grid-row: span 2; }
}

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step-num { position: absolute; top: 18px; right: 0; font-family: var(--font); font-size: 0.85rem; color: var(--muted); }
.step .icon-lg { color: var(--ink); margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Pilot */
.pilot { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 88px 0; position: relative; overflow: hidden; }
.pilot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.pilot-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.pilot h2 { color: #fff; max-width: 20ch; margin-bottom: 18px; }
.pilot p { max-width: 58ch; }
.pilot .btn { flex: none; }
@media (max-width: 860px) { .pilot-inner { flex-direction: column; align-items: flex-start; gap: 32px; } }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--muted); }
.contact-copy .contact-alt { margin-top: 18px; color: var(--text); }
.contact-alt a { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: #c62828; }
.hp { position: absolute; left: -9999px; }
.form-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 0.95rem; color: var(--muted); }
.form-status.ok { color: #1b7f3b; font-weight: 600; }
.form-status.err { color: #c62828; }
@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.95rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.site-footer a:not(.brand) { color: var(--muted); }
.site-footer a:not(.brand):hover { color: var(--ink); }
.site-footer .brand { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* Privacy page */
.doc { max-width: 720px; padding-top: 64px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
