/*
 * Main stylesheet for Devco Construction LLC website
 *
 * This file defines the typography, color palette and layout for the
 * site. We draw inspiration from the example site at
 * kitchenandbathroom‑remodel.com, using a clean navigation bar,
 * prominent hero section with call to action, feature cards for
 * services, gallery placeholders, testimonials and an easy to use
 * contact form. Colors and fonts are chosen to be legible and
 * professional while still feeling warm and inviting. All styling
 * properties can be adjusted later to match your brand. When you
 * add your own photos and logo, update the CSS selectors as needed.
 */

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #0d3b66; /* deep blue reminiscent of trusted construction */
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

nav ul li a:hover {
  color: #ffa500; /* warm orange highlight */
}

/* Custom logo styling replicating the licensed and insured badge */
nav .custom-logo {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  color: #fff;
  line-height: 1;
}

nav .custom-logo .stars {
  font-size: 0.6rem;
  margin-bottom: 2px;
}

nav .custom-logo .tagline {
  font-size: 0.55rem;
  display: block;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

nav .custom-logo .name {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

nav .custom-logo .subname {
  font-size: 0.6rem;
  display: block;
}

.hero {
  background: linear-gradient(rgba(13,59,102,0.65), rgba(13,59,102,0.65)), url('placeholder-hero.jpg') center/cover no-repeat;
  /* placeholder hero image. Replace with your own high quality photo of a kitchen or bathroom remodel. */
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: #ffa500;
  color: #0d3b66;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #f48c06;
  color: #fff;
}

/* Services section */
.services {
  padding: 60px 20px;
  background-color: #fff;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d3b66;
}

.service-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0d3b66;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.service-card .btn {
  background-color: #0d3b66;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.service-card .btn:hover {
  background-color: #00274c;
}

/* Gallery section */
.gallery {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d3b66;
}

.gallery-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Before & After section */
.before-after {
  padding: 60px 20px;
  background-color: #f9f9f9;
}
.before-after h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d3b66;
}
.project-pair {
  margin-bottom: 40px;
}
.project-pair h3 {
  margin-bottom: 15px;
  color: #0d3b66;
  font-size: 1.4rem;
}
.pair-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.pair-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* About section */
.about {
  padding: 60px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  color: #0d3b66;
  margin-bottom: 20px;
}

.about img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.about p {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Testimonials section */
.testimonials {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d3b66;
}

.testimonial-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.testimonial {
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial .author {
  font-weight: bold;
  color: #0d3b66;
}

/* Contact section */
.contact {
  padding: 60px 20px;
  background-color: #fff;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0d3b66;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact form {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.contact form label {
  font-weight: bold;
  color: #0d3b66;
}

.contact form input,
.contact form select,
.contact form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact form textarea {
  height: 120px;
  resize: vertical;
}

.contact form button {
  grid-column: 1 / -1;
  width: 200px;
  justify-self: center;
  padding: 12px 24px;
  background-color: #0d3b66;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.contact form button:hover {
  background-color: #00274c;
}

/* Footer styles */
footer {
  background-color: #0d3b66;
  color: #fff;
  padding: 40px 20px;
}

footer .footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffa500;
}

footer ul {
  list-style: none;
  line-height: 1.8;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

footer ul li a:hover {
  color: #ffa500;
}

footer .copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  /* Stack navigation items and logo vertically */
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  /* Adjust hero section padding and typography */
  .hero {
    padding: 60px 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  /* Contact form: stack fields vertically */
  .contact form {
    grid-template-columns: 1fr;
  }
  /* Before & after: stack images vertically */
  .pair-images {
    grid-template-columns: 1fr;
  }
  .pair-images img {
    height: auto;
  }
}