/* D Engineering — site styles */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
:root {
  --red: #B60C1C;
  --red-dark: #8E0915;
  --blue: #0B4C8C;
  --blue-dark: #083A6C;
  --blue-tint: #E6EEF7;
  --navy: #0B2238;
  --navy-2: #12304D;
  --navy-line: #1C3A58;
  --ink: #0B2238;
  --text: #4A535D;
  --muted: #5F6873;
  --line: #DDE1E5;
  --field: #B9C0C8;
  --bg: #F4F5F6;
  --white: #FFFFFF;
  --on-dark: #C7D5E3;
  --on-dark-2: #A9BCD0;
  --accent-on-dark: #9CC4EC;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--body); color: var(--navy-2); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.eyebrow--dark { color: var(--accent-on-dark); }
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 72px); line-height: .98; letter-spacing: -.5px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; color: var(--ink); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 6px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn svg { flex: none; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { color: var(--white); border: 1.5px solid #4A6C8E; background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--light { background: var(--white); color: var(--red); font-weight: 700; }
.btn--light:hover { color: var(--red-dark); }
.btn--outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--field); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 15px; }
.text-link:hover { text-decoration: underline; color: var(--blue-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo img { height: 64px; width: auto; max-width: 62vw; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.nav a:not(.btn) { color: #12304D; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: 1.5px solid var(--field); border-radius: 8px; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 4px 24px 20px; border-top: 1px solid var(--line); }
.mobile-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; }
.mobile-nav.is-open { display: flex; }
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__logo img { height: 52px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__text p { font-size: 19px; line-height: 1.55; color: var(--on-dark); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__photo { position: relative; margin: 0; flex: 1 1 420px; min-width: 0; height: 420px; border-radius: 10px; overflow: hidden; background: var(--navy-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__photo figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(11, 34, 56, .88); color: var(--white); font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 6px; }
.project img { object-position: 50% 25%; }
.stats { border-top: 1px solid var(--navy-line); }
.stats__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--accent-on-dark); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--on-dark-2); }
@media (max-width: 760px) {
  .hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .hero__photo { height: auto; background: none; border-radius: 0; overflow: visible; }
  .hero__photo img { height: 220px; border-radius: 10px; }
  .hero__photo figcaption { position: static; max-width: none; background: none; color: var(--on-dark-2); padding: 8px 0 0; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero__inner { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6.5vw, 64px); line-height: 1; max-width: 820px; }
.page-hero p { font-size: 19px; line-height: 1.55; color: var(--on-dark); max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--on-dark-2); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }

/* Sections */
.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tint { background: var(--blue-tint); }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.section__head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 340px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.6; color: var(--text); flex: 1; }
.card__icon { width: 48px; height: 48px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }

.projects { display: flex; flex-wrap: wrap; gap: 28px; }
.project { flex: 1 1 340px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.project img, .project__placeholder { height: 240px; width: 100%; object-fit: cover; border-radius: 10px; }
.project__placeholder { border: 2px dashed #C3C9D0; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.project__tag { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.project h2, .project h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.project p { font-size: 15px; line-height: 1.6; color: var(--text); }
.project[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer; background: var(--white); color: var(--ink); border: 1.5px solid var(--field); }
.filter[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* About */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { min-width: 0; }
.split__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.split__intro .lead { font-size: 17px; }
.reasons { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 20px; }
.reason { flex: 1 1 240px; min-width: 0; display: flex; gap: 14px; }
.reason svg { flex: none; margin-top: 2px; }
.reason strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.reason span { font-size: 15px; line-height: 1.55; color: var(--text); }

/* Software band */
.band { background: var(--navy); border-radius: 14px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: var(--white); }
.band p { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.band--red { background: var(--red); padding: 40px 48px; }
.band--red p { color: #FFE3E5; }
@media (max-width: 760px) { .band, .band--red { padding: 32px 24px; } }

/* Quote */
.quote { display: flex; flex-wrap: wrap; gap: 56px; }
.quote__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; font-size: 16px; }
.contact-list a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-list div { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.contact-list svg { flex: none; }
.map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); margin-top: 8px; }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.map__foot { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text); }

.form { flex: 1 1 480px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 200px; min-width: 0; }
.form > .field { flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 16px var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: 6px; padding: 0 14px; height: 46px; width: 100%; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11, 76, 140, .35); border-color: var(--blue); }
.upload { border: 2px dashed var(--field); border-radius: 8px; background: var(--white); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.upload input { height: auto; border: 0; padding: 0; font-size: 15px; max-width: 100%; }
.hint { font-size: 13px; color: var(--text); }
.form-error { background: #FDECEE; color: #7A0712; border: 1px solid #F3B9BF; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 760px) { .form { padding: 22px; } }

/* Capability table, steps, FAQ */
.table-box { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.table-box table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-box th, .table-box td { padding: 14px 16px; text-align: left; vertical-align: top; }
.table-box tr + tr { border-top: 1px solid var(--line); }
.table-box th { font-weight: 600; color: var(--ink); width: 42%; }
.table-box td { color: var(--text); }
.gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery__row { display: flex; gap: 16px; }
.gallery__row > * { flex: 1 1 0; min-width: 0; }
.ph { border-radius: 10px; border: 2px dashed #C3C9D0; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; padding: 12px; }
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 300px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.step p { font-size: 16px; line-height: 1.6; color: var(--text); }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq details p { padding-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--text); }

/* Prose (privacy) */
.prose { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 40px; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 32px); color: var(--ink); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: #33404D; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Thank you */
.thanks { max-width: 680px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-2); font-size: 14px; }
.site-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; line-height: 1.6; }
.site-footer__logo { background: var(--white); border-radius: 8px; padding: 8px 12px; align-self: flex-start; }
.site-footer__logo img { height: 48px; width: auto; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__legal { border-top: 1px solid var(--navy-line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; line-height: 1.6; }
.site-footer__links { display: flex; gap: 20px; }
