/* =========================================================
   DG ENGINEERING — SHARED STYLES
   ========================================================= */

:root {
  --ink: #17222C;
  --blue: #2866B1;
  --blue-deep: #134A8A;
  --blue-tint: #EAF1F8;
  --gray: #5B6472;
  --gray-light: #8B94A0;
  --hair: #D8DEE5;
  --offwhite: #F5F7F9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222C36;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, .wordmark, nav a, .btn {
  font-family: 'Poppins', Arial, sans-serif;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section {
  padding: 90px 0;
}
.section.tight { padding: 60px 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.tint { background: var(--offwhite); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hair);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.wordmark {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.2px;
}
.wordmark .dg { color: var(--ink); }
.wordmark .eng { color: var(--blue); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-cta .btn { padding: 11px 22px; font-size: 13.5px; }

/* Mobile nav toggle (kept simple: hidden below, shown as horizontal scroll on very small widths) */
@media (max-width: 760px) {
  nav.main-nav ul { gap: 20px; overflow-x: auto; }
  .header-cta .btn.hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero .hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,34,44,0.94) 0%, rgba(23,34,44,0.78) 42%, rgba(23,34,44,0.35) 75%, rgba(23,34,44,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 100px 0;
}
.hero-content h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-content h1 span { color: #7CA9DE; }
.hero-content p.lead {
  font-size: 17px;
  color: #C4CEDA;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 16px; }

.hero.small { min-height: 320px; }
.hero.small .hero-content { padding: 70px 0; }
.hero.small h1 { font-size: 36px; }

/* ---------- Feature / stat rows ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.stat-card {
  background: var(--ink);
  color: #fff;
  padding: 34px 20px;
  text-align: center;
  position: relative;
}
.stat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
}
.stat-card .num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
}
.stat-card .lbl {
  font-size: 12.5px;
  color: #AEBBCB;
  margin-top: 6px;
  letter-spacing: 0.3px;
}
.stat-card .lbl b { color: #fff; font-weight: 600; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 34px; }
}

h2.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.2;
}
.section.dark h2.section-title, .section.dark p { color: #fff; }
.section.dark .body-text { color: #C4CEDA; }
.body-text { color: var(--gray); font-size: 15.5px; line-height: 1.75; }

.rule {
  width: 44px; height: 4px;
  background: var(--blue);
  margin-bottom: 20px;
}

/* ---------- Service cards ---------- */
.svc-card {
  background: #fff;
  border: 1px solid var(--hair);
}
.svc-card img { height: 200px; width: 100%; object-fit: cover; }
.svc-card .svc-body { padding: 26px; }
.svc-card .idx {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 1px;
}
.svc-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 8px 0 10px; }
.svc-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.svc-card a.more {
  display: inline-block; margin-top: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--blue);
  border-bottom: 1.5px solid var(--blue);
}

/* ---------- Photo strips ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.photo-strip img { height: 160px; width: 100%; object-fit: cover; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Vision / Mission ---------- */
.vm-col {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--hair);
}
.vm-col .vm-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.vm-col .vm-icon svg { width: 20px; height: 20px; }
.vm-col h3 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; margin-bottom: 10px; }
.vm-col p { color: var(--gray); font-size: 14.5px; line-height: 1.7; }

/* ---------- Why cards ---------- */
.why-item { border-left: 3px solid var(--blue); padding-left: 18px; }
.why-item h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.why-item p { font-size: 14.5px; color: var(--gray); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.contact-item { margin-bottom: 26px; }
.contact-item .k {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 6px;
}
.contact-item .v { font-size: 16px; color: var(--ink); line-height: 1.6; }
.contact-item .v a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.contact-item .v a:hover { border-color: var(--blue); color: var(--blue); }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
form.contact-form label {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--ink); text-transform: uppercase; margin-bottom: 8px; display: block;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--hair);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #C4CEDA; padding: 56px 0 26px; }
footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: #fff; text-transform: uppercase; margin-bottom: 18px;
}
footer .wordmark { color: #fff; margin-bottom: 14px; display: inline-block; }
footer .wordmark .dg { color: #fff; }
footer p.foot-desc { font-size: 14px; color: #9FADBD; max-width: 320px; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { font-size: 14px; color: #C4CEDA; transition: color 0.15s ease; }
footer ul a:hover { color: #fff; }
footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-size: 12.5px; color: #7F8FA1;
}
@media (max-width: 900px) {
  footer .footer-top { grid-template-columns: 1fr; }
  footer .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---------- Breadcrumb strip on inner pages ---------- */
.page-eyebrow-band {
  background: var(--offwhite);
  border-bottom: 1px solid var(--hair);
  padding: 14px 0;
  font-size: 13px;
  color: var(--gray);
}
.page-eyebrow-band a { color: var(--blue); font-weight: 600; }
