/* =========================
   Global Colors & Fonts
========================= */
:root {
  --primary-color: #4a90e2;   /* Soft blue */
  --accent-color: #2ecc71;    /* Subtle green */
  --background-color: #ffffff;/* White background */
  --text-color: #333333;      /* Dark gray text */
  --heading-font: 'Helvetica Neue', sans-serif;
  --body-font: 'Georgia', serif;
}

/* =========================
   Reset / Base Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* =========================
   Header / Hero Section
========================= */
header {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* =========================
   Homepage Service Squares
========================= */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
}

.service-square {
  background-color: var(--primary-color);
  color: var(--background-color);
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-align: center;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  text-decoration: none; /* remove underline if wrapped in <a> */
}

.service-square:hover {
  transform: translateY(-5px);
  background-color: var(--accent-color);
}

.service-square::after {
  content: "Click to Learn More";
  position: absolute;
  bottom: 10px;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--background-color);
}

/* =========================
   Service Page Squares
========================= */
.service-items-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
}

.service-item-square {
  background-color: var(--primary-color);
  color: var(--background-color);
  width: 300px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-family: var(--heading-font);
  font-weight: bold;
  padding: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item-square:hover {
  transform: translateY(-5px);
  background-color: var(--accent-color);
}

/* =========================
   Buttons
========================= */
button, .btn {
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* =========================
   Footer
========================= */
footer {
  background-color: var(--primary-color);
  color: var(--background-color);
  text-align: center;
  padding: 30px 20px;
}

footer a {
  color: var(--background-color);
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-color);
}

/* =========================
   Contact Form
========================= */
form input, form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

form textarea {
  min-height: 120px;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .services-container, .service-items-container {
    flex-direction: column;
    align-items: center;
  }

  .service-square {
    width: 180px;
    height: 180px;
  }

  .service-item-square {
    width: 250px;
  }
}
