:root {
  --primary: #78a1a8;
  --accent: #6c8c92;
  --background: #f9f9f9;
  --text: #2c3e3f;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text);
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: linear-gradient(to right, white 120px, var(--primary) 400px);
  flex-wrap: wrap;
}

header img {
  height: 80px;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 0.2em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.3em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 0.6em 1.2em;
  background-color: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--primary);
}

.section {
  padding: 3em 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.card {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0;
}

.card h3::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('images/denren_logo_icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.gallery img {
  max-width: 48%;
  border-radius: 5px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
}

form input, form textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  padding: 0.8em;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.why-list {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.why-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5em;
}

footer {
  border-top: 2px solid black;
  background-color: white;
  color: var(--primary);
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1em;
  }

  .hero {
    padding: 60px 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .cta-button {
    padding: 0.5em 1em;
    font-size: 1em;
  }

  .cards, .gallery {
    flex-direction: column;
  }

  .gallery img {
    max-width: 100%;
  }

  form {
    width: 100%;
    padding: 0 1em;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.1em;
  }

  .hero h1 {
    font-size: 2.4em;
  }

  .hero p {
    font-size: 1.2em;
  }

  nav a {
    font-size: 1.1em;
  }

  .cta-button {
    font-size: 1.1em;
    padding: 0.7em 1.4em;
  }

  .card {
    font-size: 1.05em;
  }

  .why-list {
    font-size: 1.05em;
  }

  form input, form textarea {
    font-size: 1.05em;
  }

  footer {
    font-size: 1em;
  }
}

/* Align project gallery images with cards */
.gallery img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Restyle contact section */
form {
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form input, form textarea {
  font-size: 1em;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  font-size: 1em;
  padding: 0.8em;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 0.5em;
}

@media (max-width: 768px) {
  .gallery {
    align-items: center;
    justify-content: center;
  }

  .gallery img {
    max-width: 100%;
  }

  form {
    padding: 1.5em 1em;
  }
}
