
/* ========================================
   DKM GRAPHICS - HOMEPAGE STYLESHEET
   Color palette:
   Navy:        #101827
   Electric:    #3985ED
   Light gray:  #F4F6FA
   White:       #FFFFFF
======================================== */

/* ---------- Global styles ---------- */

:root {
  --navy: #101827;
  --navy-light: #263449;
  --blue: #3985ED;
  --blue-hover: #246BCB;
  --light-gray: #F4F6FA;
  --white: #FFFFFF;
  --text: #263449;
  --muted: #667085;
  --border: #E2E7EF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header and navigation ---------- */

.site-header {
  background-color: var(--navy);
  color: var(--white);
  width: 100%;
  padding: 18px 6%;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

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

.hero {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 100px 20px 110px;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #D6DEEA;
  font-size: 1.15rem;
}

.hero img {
  max-width: 220px;
  margin-bottom: 25px;
  border-radius: 12px;
}

/* ---------- Buttons ---------- */

.button,
.button-primary,
.button-secondary {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 0.2s ease,
              transform 0.2s ease;
}

.button-primary {
  background-color: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background-color: var(--blue-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.button-secondary {
  background-color: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.button-secondary:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* ---------- General section styling ---------- */

section {
  padding: 75px 6%;
}

section h2 {
  color: var(--navy);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

section > p {
  max-width: 750px;
  margin: 0 auto 35px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Services section ---------- */

.services {
  background-color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.service-card {
  background-color: var(--light-gray);
  padding: 30px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease,
              box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(16, 24, 39, 0.09);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Portfolio section ---------- */

.portfolio {
  background-color: var(--light-gray);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.portfolio-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(16, 24, 39, 0.04);
}

.portfolio-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.portfolio-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

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

.about {
  background-color: var(--white);
}

.about p {
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}

/* ---------- Process section ---------- */

.process {
  background-color: var(--light-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.process-card {
  background-color: var(--white);
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border);
}

.process-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

.process-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Call to action ---------- */

.cta-section {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: #D6DEEA;
  margin-bottom: 25px;
}

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

.site-footer {
  background-color: #0A111D;
  color: var(--white);
  padding: 40px 6%;
  text-align: center;
}

.site-footer p {
  color: #B8C3D3;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  margin: 0 10px;
}

.site-footer a:hover {
  color: var(--blue);
}

.site-footer .social-icons {
  margin: 18px 0;
}

.site-footer .social-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer .footer-nav {
  margin: 20px 0;
}

/* ---------- Tablet layout ---------- */

@media (max-width: 900px) {
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 80px 20px;
  }
}

/* ---------- Mobile layout ---------- */

@media (max-width: 600px) {
  .site-header {
    padding: 18px 5%;
  }

  .topnav {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    justify-content: center;
    gap: 18px;
  }

  .hero {
    padding: 65px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 55px 5%;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .service-grid,
  .portfolio-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-nav a {
    display: inline-block;
    margin: 6px 8px;
  }
}
