/* Code Solutions Rx — site styles */
:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --ink: #1B2533;
  --muted: #5B6573;
  --teal: #19B3A0;
  --teal-dark: #0E8C7E;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --line: #E3E8EF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .08);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--teal-dark); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: .75rem;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 10px; border: 2px solid var(--teal-dark);
  background: var(--teal-dark); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #0A7368; border-color: #0A7368; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(25, 179, 160, .45); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--line); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #E8F7F5; border-color: #E8F7F5; }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--teal-dark); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(25, 179, 160, .10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-facts strong { color: var(--navy); }
.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero-circle {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #E3F1F0 70%);
  border: 1px solid var(--line);
}
.hero-img { position: relative; width: 100%; max-width: 520px; filter: drop-shadow(0 18px 24px rgba(11, 37, 69, .18)); }
.rx-card {
  position: absolute; left: 0; bottom: 4%;
  background: var(--navy); color: #DCE6F2; border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: .82rem;
}
.rx-card-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; margin-bottom: 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.rx-card code { font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace; line-height: 1.7; }
.rx-card .k { color: var(--teal); }

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #D3DCE6; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 10px; margin-bottom: 18px;
  background: #E6F6F4; stroke: var(--teal-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card-cta { background: var(--navy); border-color: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #C4D2E3; margin-bottom: 20px; }
.card-cta .btn { align-self: flex-start; }

.tech { margin-top: 56px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.tech-label { margin: 0; font-weight: 700; color: var(--navy); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--navy-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }
.step-num { display: inline-block; font-weight: 800; color: var(--teal-dark); font-size: .9rem; margin-bottom: 12px; letter-spacing: .05em; }

/* About */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-photo img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.about-copy p { color: #3A4554; }
.clients-label { font-weight: 700; color: var(--navy) !important; margin-top: 1.5em; margin-bottom: .6em; }
.clients { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: .9rem; color: var(--navy-2); font-weight: 600; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, #0E2F57 100%); color: #DCE6F2; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal); }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact-copy p { color: #C4D2E3; font-size: 1.08rem; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-points li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 600; color: #fff; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.req { color: #C2410C; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .85em; border: 1.5px solid #CDD6E1; border-radius: 10px; background: #fff; width: 100%;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEBBCB; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-dark); outline: none; box-shadow: 0 0 0 3px rgba(25, 179, 160, .2); }
.field.invalid input, .field.invalid textarea { border-color: #C2410C; }
.field-error { color: #C2410C; font-size: .85rem; margin-top: 4px; }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #C2410C; }
.form-success { text-align: center; padding: 32px 8px; }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; background: #E6F6F4;
  display: grid; place-items: center;
}
.form-success .check svg { width: 28px; height: 28px; stroke: var(--teal-dark); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success p { color: var(--muted); }

/* Footer */
.site-footer { background: #071A31; color: #9FB0C4; padding: 32px 0; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { margin: 0; }
.site-footer a { color: #DCE6F2; }
.brand-footer .brand-text { color: #fff; font-size: 1.05rem; }
.brand-footer .accent { color: var(--teal); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
  .cards, .steps, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .form { padding: 22px; }
  .hero-art { min-height: 260px; }
  .rx-card { font-size: .74rem; padding: 10px 14px; }
  .brand-text { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
