/* ============================================================
   Denishian Engineering Company Limited — Stylesheet
   Palette derived from company logo:
   Navy  #16294A (primary) / #0F1E38 (deep) / #2A4570 (mid)
   Gray  #838688 (structural gray) / #C7CACD (light gray)
   ============================================================ */

:root {
  --navy-900: #0F1E38;
  --navy-800: #16294A;
  --navy-700: #1D3358;
  --navy-600: #2A4570;
  --blue-accent: #3E6DA3;
  --gray-600: #6B7075;
  --gray-500: #838688;
  --gray-300: #C7CACD;
  --gray-100: #F2F3F5;
  --white: #FFFFFF;
  --ink: #1B1F24;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(15, 30, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 30, 56, 0.12);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { color: var(--gray-600); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

section { padding: 88px 0; }

.bg-alt { background: var(--gray-100); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy-800);
}
.btn-outline:hover { border-color: var(--navy-800); background: var(--gray-100); }
.btn-light {
  background: var(--white);
  color: var(--navy-800);
}
.btn-light:hover { background: var(--gray-100); transform: translateY(-2px); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}
.brand-text .tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--gray-100); }
.nav-links a.active { color: var(--blue-accent); font-weight: 600; }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: var(--white);
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lead {
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  background: var(--navy-800);
  border-radius: 14px;
  padding: 44px 32px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.hero-art .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.hero-art .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.hero-art .stat span {
  font-size: 0.85rem;
  color: var(--gray-300);
}
.hero-art .divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 30px 0;
}
.hero-art .lines {
  height: 10px;
  border-radius: 6px;
  background: var(--gray-500);
  opacity: 0.7;
  margin-bottom: 10px;
}

/* ---------------- Page Header (interior pages) ---------------- */
.page-header {
  background: var(--navy-800);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--navy-600);
  opacity: 0.35;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--white); opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-header h1 { color: var(--white); position: relative; z-index: 1; }
.page-header p { color: var(--gray-300); max-width: 560px; margin-top: 14px; position: relative; z-index: 1; }

/* ---------------- Cards / Grids ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-600); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 14px; }
.card ul { font-size: 0.9rem; color: var(--gray-600); }
.card ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
}

/* Values / feature list with numbered / icon markers */
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-item .mark {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value-item p { font-size: 0.92rem; }

/* Skill bars */
.skill { margin-bottom: 22px; }
.skill-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.skill-track {
  height: 8px;
  background: var(--gray-300);
  border-radius: 20px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-accent));
}

/* Image + text split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split .media {
  background: var(--navy-800);
  border-radius: 12px;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.split .badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
}
.split .badge b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-800); }
.split .badge span { font-size: 0.78rem; color: var(--gray-500); }
.split .media-inner {
  color: var(--white);
  text-align: center;
  padding: 30px;
  position: relative;
  z-index: 1;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--white);
  background: var(--navy-800);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* CTA band */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: var(--gray-300); max-width: 520px; margin: 0 auto 30px; }

/* Empty / coming-soon state (projects page) */
.empty-state {
  text-align: center;
  padding: 70px 30px;
  border: 2px dashed var(--gray-300);
  border-radius: 14px;
  background: var(--gray-100);
}
.empty-state .icon-circle {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 22px;
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 460px; margin: 0 auto; }

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 12px;
  padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; margin-bottom: 26px; }
.info-row .ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.info-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  margin-bottom: 4px;
}
.info-row .val { font-size: 0.98rem; color: var(--white); }
.info-row .val a:hover { text-decoration: underline; }
.hours-table { margin-top: 6px; }
.hours-table div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.92rem; }
.hours-table div:last-child { border-bottom: none; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(62,109,163,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 6px; }

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 340px;
  margin-top: 40px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 42px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.site-footer p.desc { font-size: 0.92rem; max-width: 300px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; color: var(--gray-300); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { margin-bottom: 14px; font-size: 0.92rem; display: flex; gap: 10px; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.85rem;
}
.webmail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--gray-300);
  transition: all 0.2s ease;
}
.webmail-link:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.4); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split .media { order: -1; min-height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-130%); opacity: 0; transition: all 0.25s ease; pointer-events: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
