/* ============================================================
   Proiekt — Servicios AutoCAD landing
   Local component styles. Tokens live in colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-2);
  background: var(--bg-1);
}
/* Hard stop for sideways panning on mobile (clip where supported, hidden as fallback) */
html, body { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
/* Grid blowout guard: tracks never grow past the viewport because of wide content */
[class*="grid"] > *, .steps-row > *, .logo-wall > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--paper-tint); }
.section-cool { background: var(--paper-cool); }
.section-dark { background: var(--navy-900); color: white; }

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-700);
  margin: 0 0 16px;
}
.section-dark .eyebrow { color: var(--cyan-500); }

.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: 40px; font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.06; margin: 0;
}
.section-head p { font-size: 18px; color: var(--fg-3); margin: 16px 0 0; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 0 22px;
  height: 48px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 180ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(19,181,234,0.30); }
.btn-primary {
  background: var(--brand-cyan);
  color: white !important;
  box-shadow: 0 10px 24px rgba(19,181,234,0.30);
}
.btn-primary:hover { background: var(--cyan-700); color: white !important; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(19,181,234,0.36); }
.btn-secondary { background: var(--navy-900); color: white !important; }
.btn-secondary:hover { background: var(--brand-cyan); color: white !important; transform: translateY(-1px); }
.btn-outline {
  background: white;
  color: var(--navy-700) !important;
  box-shadow: inset 0 0 0 1.5px var(--navy-200);
}
.btn-outline:hover { background: var(--navy-50); color: var(--navy-900) !important; box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-700) !important; padding: 0 10px; }
.btn-ghost:hover { background: transparent; color: var(--brand-cyan) !important; }
.btn-lg { height: 56px; font-size: 16px; padding: 0 28px; border-radius: 12px; }
.btn-sm { height: 40px; font-size: 14px; padding: 0 16px; }
.btn-block { width: 100%; }

/* On-dark buttons */
.section-dark .btn-outline { background: transparent; color: white !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28); }
.section-dark .btn-outline:hover { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1.5px var(--brand-cyan); }

/* ---------- Wordmark ---------- */
.wordmark { font-family: "Museo", var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wordmark .p { color: var(--navy-700); }
.wordmark .i { color: var(--brand-cyan); }
.wordmark.on-dark .p { color: white; }
.wordmark.on-dark .i { color: var(--brand-cyan); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em;
  background: var(--cyan-50); color: var(--cyan-800);
  border: 1px solid var(--cyan-200);
}
.chip-lime { background: rgba(213,255,126,0.14); color: var(--lime-700); border-color: rgba(213,255,126,0.30); }

/* ---------- Cards ---------- */
.card {
  background: white; border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 28px;
  border: 1px solid var(--hairline);
}

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--fg-2); letter-spacing: -0.005em; }
.field .req { color: var(--brand-cyan); }
.input, .textarea, .select {
  font-family: var(--font-sans);
  font-size: 15px; color: var(--navy-900);
  background: white;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--navy-300); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(19,181,234,0.16);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  background: var(--navy-50); border: 1.5px solid var(--hairline);
  color: var(--fg-2); transition: all 140ms var(--ease-out);
  user-select: none;
}
.chip-check input { display: none; }
.chip-check .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-300); transition: all 140ms var(--ease-out); }
.chip-check.active { background: var(--cyan-50); border-color: var(--cyan-600); color: var(--cyan-800); }
.chip-check.active .dot { background: var(--brand-cyan); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile drawer ---------- */
.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: white; box-shadow: var(--shadow-lg);
  padding: 24px; transform: translateX(100%);
  transition: transform 280ms var(--ease-out); z-index: 101;
  overflow-y: auto;
}
.nav-drawer.open { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 32px; }
}
@media (max-width: 600px) {
  .container, .container-wide { padding: 0 20px; }
  .section-head h2 { font-size: 27px; }
  .section-sm { padding: 48px 0; }
  .section-head p { font-size: 16.5px; }
  /* Long CTA labels: let buttons wrap instead of overflowing */
  .btn { white-space: normal; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; max-width: 100%; text-align: center; line-height: 1.25; }
  .btn-lg { min-height: 56px; padding-left: 20px; padding-right: 20px; }
}
