/* =========================================================
   DNA Controls LLC — One-Page Site
   Brand colors pulled from logo: navy #10203c / cream #f4f3ef
   ========================================================= */

:root {
  --navy: #10203c;
  --navy-2: #0a1628;
  --steel: #17294a;
  --steel-light: #1f3457;
  --border: #2a3f5f;
  --cream: #f4f3ef;
  --cream-dim: #d8dbe2;
  --text: #eef1f5;
  --text-dim: #aab4c4;
  --text-faint: #7c8aa0;
  --radius: 4px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-brand: 'Rajdhani', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
  padding-bottom: 6px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--text-dim);
  opacity: 0.3;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--cream); color: var(--navy); }
.btn-primary:hover { background: #ffffff; }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--border); }
.btn-outline:hover { border-color: var(--cream); }

/* ---------- Brand lockup (per DNA Controls identity spec) ---------- */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.brand-lockup .mark-img { flex: 0 0 auto; }
.brand-wordblock { width: fit-content; }
.brand-wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 0.88;
  color: var(--cream);
  text-transform: uppercase;
}
.brand-rule { height: 2px; background: var(--cream); margin: 15px 0 12px; }
.brand-descriptor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--cream);
  text-transform: uppercase;
}
.brand-tagline {
  font-family: var(--font-brand);
  font-weight: 500;
  letter-spacing: 2.7px;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
  margin-top: 15px;
}

/* Hero scale */
.hero .brand-lockup .mark-img { width: 168px; height: auto; }
.hero .brand-wordmark { font-size: clamp(2.6rem, 6vw, 4.1rem); }
.hero .brand-descriptor { font-size: 1rem; }
.hero .brand-tagline { font-size: 0.95rem; }

/* Compact nav lockup */
.nav-lockup { display: flex; align-items: center; gap: 14px; }
.nav-lockup .mark-img { height: 58px; width: auto; flex-shrink: 0; }
.nav-lockup .brand-wordmark {
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.nav-lockup .nav-descriptor {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 3px;
}
.nav-lockup .nav-rule {
  height: 1.5px;
  background: var(--border);
  margin: 4px 0 4px;
}

@media (max-width: 480px) {
  .hero .brand-lockup { gap: 18px; }
  .hero .brand-lockup .mark-img { width: 110px; }
  .hero .brand-descriptor { font-size: 0.8rem; }
}

/* Footer lockup — bigger mark, wordmark + descriptor + tagline, left-aligned */
.footer-lockup {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
  align-items: center;
}
.footer-lockup .mark-img { width: 104px; height: auto; flex-shrink: 0; }
.footer-lockup .brand-wordmark { font-size: 1.85rem; }
.footer-lockup .brand-rule { margin: 9px 0 7px; }
.footer-lockup .brand-descriptor { font-size: 0.68rem; letter-spacing: 0.3px; }
.footer-lockup .brand-tagline { font-size: 0.64rem; text-align: left; margin-top: 8px; }
@media (max-width: 480px) {
  .footer-lockup { flex-wrap: wrap; }
  .footer-lockup .mark-img { width: 84px; }
  .footer-lockup .brand-wordmark { font-size: 1.55rem; }
}

/* ---------- Header / anchor nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 32, 60, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo .logo-mark-img { height: 58px; width: auto; flex-shrink: 0; }
.logo-text {
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1.2;
}
.logo-text .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main-nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
nav.main-nav a { font-size: 0.92rem; font-weight: 600; color: var(--text-dim); transition: color 0.15s ease; white-space: nowrap; }
nav.main-nav a:hover { color: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { display: none; font-family: var(--font); font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
@media (min-width: 1150px) { .header-phone { display: inline; } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
}
@media (max-width: 1150px) {
  nav.main-nav { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 98px; left: 0; right: 0;
    background: var(--navy-2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }
  nav.main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 0; }
  nav.main-nav.open a { display: block; width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--border); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 15% 15%, rgba(244,243,239,0.06), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .hero-logo { width: 100%; max-width: 620px; height: auto; margin: 0 auto 40px; }
.hero h1 {
  margin-bottom: 16px;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.3;
}
.hero h1 span { white-space: nowrap; }
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(1.3rem, 4.5vw, 1.9rem); }
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 20px;
}
.hero .made-of {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Section basics ---------- */

section { padding: 90px 0; scroll-margin-top: 98px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--navy-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- About ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.stat-panel {
  background: var(--steel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.stat-panel .panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.stat-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-dim); font-size: 0.9rem; }
.stat-row .value { font-family: var(--font-mono); color: var(--cream); font-weight: 700; }

.value-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.value-row:last-child { border-bottom: none; }
.value-row .v-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.value-row .v-icon.v-icon-muted { filter: grayscale(65%) saturate(60%) brightness(1.05); }
.value-row .v-body h4 { font-size: 0.92rem; color: var(--cream); margin-bottom: 3px; }
.value-row .v-body p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; }

/* ---------- Services (Drives / Networking / Automation) ---------- */

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

.card {
  background: var(--steel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--cream); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: rgba(244,243,239,0.08);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card ul { margin-top: 14px; list-style: none; font-size: 0.88rem; color: var(--text-faint); }
.card ul li { padding: 5px 0 5px 18px; position: relative; }
.card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--cream); }

/* ---------- Why us ---------- */

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 16px; }
.value-item .num { font-family: var(--font-mono); color: var(--cream); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Industries ---------- */

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag-break { display: none; width: 100%; height: 0; }
@media (min-width: 901px) {
  .tag-break { display: block; flex-basis: 100%; }
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--steel); border: 1px solid var(--border); border-radius: 8px; padding: 34px; }
.contact-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ic {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(244,243,239,0.08);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-line .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.contact-line a, .contact-line .val { color: var(--cream); font-weight: 700; font-size: 1rem; }

form.contact-form { background: var(--steel); border: 1px solid var(--border); border-radius: 8px; padding: 34px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--cream); }
.form-row textarea { resize: vertical; min-height: 120px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 14px; }
.form-success { text-align: center; padding: 28px 10px; }
.form-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-message { color: var(--text); font-size: 0.98rem; line-height: 1.6; margin-bottom: 24px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--steel) 0%, var(--steel-light) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* ---------- Footer ---------- */

footer { background: var(--navy-2); border-top: 1px solid var(--border); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; align-items: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; color: var(--cream); }
.footer-grid p { font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: 0.9rem; color: var(--text-dim); }
.footer-links a { font-size: 0.9rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--text-faint);
  text-align: center;
}

.text-center { text-align: center; }
