/* Rasa Electronics */
:root {
  --navy: #1F4E79;
  --navy-deep: #163A5B;
  --ink: #22303C;
  --muted: #55677A;
  --line: #DCE5EE;
  --tint: #F1F6FB;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--navy-deep); line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.nb { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; padding: 8px 14px; border-radius: 4px; background: var(--white); }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; color: var(--navy); line-height: 0; }
.brand .logo { display: block; width: auto; height: 48px; }
.top-right { display: flex; align-items: center; gap: 28px; }
.top nav ul { display: flex; gap: 28px; }
.top nav a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--navy); }
.top nav a[aria-current] { color: var(--navy); font-weight: 600; }
.menu { display: none; position: relative; }
.menu summary { padding: 8px 4px; color: var(--navy-deep); font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 24px rgba(22, 58, 91, .12); }
.menu li a { display: block; padding: 11px 18px; color: var(--ink); font-size: 15px; text-decoration: none; }
.menu li a:hover { background: var(--tint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 24px; border: 1px solid var(--navy); border-radius: 6px;
  background: var(--navy); color: var(--white);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--navy-deep); background: var(--navy-deep); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.ghost:hover { background: var(--tint); color: var(--navy-deep); }
.btn.small { min-height: 42px; padding: 9px 16px; font-size: 15px; white-space: nowrap; }
.btn[disabled] { opacity: .7; cursor: default; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 36px; }
.eyebrow { margin-bottom: 14px; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.35; }
h1 { font-size: clamp(38px, 4.5vw, 58px); font-weight: 700; letter-spacing: -.012em; line-height: 1.12; }
.hero-lead { margin-top: 20px; font-size: 19px; line-height: 1.5; }
.hero-sub { margin-top: 12px; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.hero-media figcaption { margin-top: 2px; color: var(--muted); font-size: 14px; text-align: center; }
.hero-media.framed img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; mix-blend-mode: normal; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 40px; padding: 28px 0 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts strong { display: block; margin-bottom: 2px; color: var(--navy-deep); font-size: 16px; font-weight: 600; }

/* Sections */
section { padding: 84px 0; }
.hero { padding: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.006em; }
.lead { margin-top: 12px; max-width: 680px; color: var(--muted); font-size: 18px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Stages: one line runs through all three */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.stage-art { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--tint); }
.stage-art img, .stage-art svg { width: 100%; height: 100%; object-fit: cover; }
.stage-art.product img { object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.stage-step { display: flex; align-items: center; margin: 22px 0 14px; }
.stage-dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 600; line-height: 1; }
.stage-step::after { content: ""; flex: 1; height: 2px; margin-right: -40px; background: var(--line); }
.stage:last-child .stage-step::after { margin-right: 0; background: linear-gradient(90deg, var(--line), transparent); }
.stage h3 { font-size: 26px; font-weight: 700; }
.stage > p { margin-top: 8px; }

/* Services */
.services { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 14%, var(--tint) 86%, var(--white) 100%); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; margin-top: 44px; }
.svc { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 16px; align-content: start; }
.svc .icon { grid-row: span 2; color: var(--navy); }
.svc h3 { font-size: 18px; font-weight: 600; }
.svc p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* One roof */
.one-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.one-grid .lead { font-size: 17px; }
.points { margin-top: 8px; }
.points li { position: relative; margin-top: 20px; padding-left: 34px; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8' fill='none' stroke='%231F4E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.points h3 { font-size: 18px; font-weight: 600; }
.points p { margin-top: 3px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.iso { width: 100%; height: auto; max-width: 620px; margin: 0 auto; }

/* Rows */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.rows { border-bottom: 1px solid var(--line); }
.row { padding: 24px 0 26px; border-top: 1px solid var(--line); }
.row h3 { font-size: 21px; font-weight: 600; }
.row > p { margin-top: 6px; color: var(--muted); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 22%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.contact-intro p { margin-top: 12px; font-size: 18px; }
.mailbox { margin-top: 28px; color: var(--muted); font-size: 16px; }
.mail { color: var(--navy); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.form-card { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 10px 28px rgba(22, 58, 91, .06); }
.form-card h3 { font-size: 23px; font-weight: 700; }
.form-lead { margin-top: 6px; color: var(--muted); font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--navy-deep); font-size: 15px; font-weight: 600; line-height: 1.3; }
.req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 12px;
  border: 1px solid #8FA1B3; border-radius: 6px; background-color: var(--white); color: var(--ink);
  font-family: inherit; font-size: 16px; line-height: 1.4;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231F4E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center; background-size: 14px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #A9C8E4; outline-offset: 1px; border-color: var(--navy); }
.help { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form-card .btn { width: 100%; margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.form-error { margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: #FDECEA; color: #8A1F11; font-size: 15px; }
.form-error a { color: inherit; }

/* Footer */
footer { padding: 22px 0; background: var(--tint); color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
footer a { color: var(--navy); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About */
.team-name h3 { margin-top: 18px; font-size: 26px; font-weight: 700; }
.bio-title { margin-top: 2px; color: var(--navy); font-weight: 600; }
.bio-facts { margin-top: 20px; }
.bio-facts li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.4; }
.bio-facts strong { display: block; color: var(--navy-deep); font-size: 20px; font-weight: 700; }
.bio { font-size: 18px; }
.why { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 14%, var(--tint) 86%, var(--white) 100%); }
.cta { text-align: center; }
.cta p { margin-top: 8px; color: var(--muted); font-size: 18px; }
.cta .btn { margin-top: 22px; }

/* Thank you */
.thanks { display: flex; align-items: center; min-height: calc(100vh - 200px); padding: 64px 0; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.thanks p { max-width: 560px; margin-top: 14px; font-size: 18px; }
.thanks .btn { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 1120px) {
  .top nav { display: none; }
  .menu { display: block; }
  .top-right { gap: 16px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 24px; }
  .hero-media { max-width: 560px; margin: 0 auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 620px; margin-left: auto; margin-right: auto; }
  .stage-step::after, .stage:last-child .stage-step::after { display: none; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
  .one-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .foot-in { padding: 0 16px; }
  .hero-grid { padding-top: 28px; padding-bottom: 20px; }
  .bar { min-height: 66px; }
  .brand .logo { height: 40px; }
  .top .btn.small { display: none; }
  .hero-lead { font-size: 18px; }
  .eyebrow { font-size: 16px; }
  .actions .btn { width: 100%; }
  section { padding: 56px 0; }
  .hero { padding: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .lead { font-size: 16px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .form-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bio { font-size: 17px; }
}
