/* Shared Site Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: #222;
}
header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  height: 70px;
}
.logo {
  height: 20px;
  width: auto;
}


nav a {
  margin: 0 16px;
  text-decoration: none;
  font-weight: 600;
  color: #222;
  transition: color .2s;
}
nav a:hover,
nav a.active {
  color: #b1001a;
}
main {
  padding: 100px 24px 48px;
  max-width: 1000px;
  margin: auto;
}
.hero {
  background: url('../img/hero.jpeg') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.section-title {
  color: #b1001a;
  font-size: 2.3rem;
  margin-bottom: 16px;
}
footer {
  background: #222;
  color: #fff;
  padding: 24px;
  text-align: center;
}
button {
  background: #b1001a;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #7b0012;
}
input, textarea {
  font-family: inherit;
  padding: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
}

/* Decorative Circle Behind Headings */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.puzzle-tile {
  background: #f6f6f6;
  border: 3px solid #b1001a;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Decorative circle */
.puzzle-tile h3 {
  position: relative;
  padding-left: 48px;
  margin-top: 0;
  margin-bottom: 12px;
}
.puzzle-tile h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background: #b1001a;
  border-radius: 50%;
  z-index: -1;
}

/* Service description spacing */
.puzzle-tile p {
  margin: 0;
  line-height: 1.4;
}
/* Mobile adjustments */
@media (max-width: 640px) {

    /* Shrink the logo */
    .logo {
        height: 40px !important;
    }

    /* Stack or center the nav buttons */
    header {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 12px;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    nav a {
        margin: 6px 12px;
    }

    /* Ensure main content isn't bumped right */
    main {
        padding: 80px 12px 24px;
    }

    /* Footer full-width and centered */
    footer {
        text-align: center;
        padding: 16px 12px;
        margin: 0;
    }
}