/*
 * Epiphany Lawn & Garden — base styles
 *
 * This stylesheet defines a simple, modern layout for the Epiphany Lawn & Garden website.
 * It uses a custom colour palette inspired by the company's brand: deep greens for
 * headlines and buttons, lighter greens for accents, and a hint of purple for highlights.
 * The site is designed to be responsive without any build step or external frameworks.
 */

/* Colour tokens */
:root {
  --epi-green-900: #123F2C;
  --epi-green-800: #18533A;
  --epi-green-700: #1F6F49; /* primary */
  --epi-green-500: #2E8A5E;
  --epi-green-300: #5FB789;
  --epi-green-50: #EAF5EF;
  --epi-purple-500: #7A4B86;
  --text-color: var(--epi-green-900);
  --bg-color: #FFFFFF;
}

/* Global resets */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--epi-green-500);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--epi-green-700);
}

/* Header & navigation */
header {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
nav .logo img {
  height: 32px;
  width: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav ul li {
  display: inline-block;
}

/* Dropdown menus for Services */
nav ul li.dropdown {
  position: relative;
}
nav ul li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  min-width: 220px;
  z-index: 50;
}
nav ul li .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--epi-green-800);
  white-space: nowrap;
}
nav ul li .dropdown-menu a:hover {
  background: var(--epi-green-50);
  color: var(--epi-green-900);
}
nav ul li.dropdown:hover .dropdown-menu {
  display: block;
}
nav a.btn {
  background: var(--epi-green-800);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
}
nav a.btn:hover {
  background: var(--epi-green-700);
}

/* Hero section */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
}
.hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--epi-green-800);
}
.section-text {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-content {
  padding: 1rem 1rem 1.5rem;
  flex: 1 1 auto;
}
.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--epi-green-800);
}
.card p {
  font-size: 0.95rem;
  color: var(--epi-green-900);
}
.card .button {
  margin-top: auto;
  align-self: flex-start;
}

/* Buttons */
.button {
  background: var(--epi-green-800);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  transition: background 0.15s ease-in-out;
}
.button:hover {
  background: var(--epi-green-700);
}
.button-outline {
  background: #fff;
  color: var(--epi-green-800);
  border: 2px solid var(--epi-green-800);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  transition: background 0.15s ease-in-out;
}
.button-outline:hover {
  background: var(--epi-green-50);
}

/* Forms */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-field label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--epi-green-800);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 1rem;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  text-align: right;
}

/* Footer */
.footer {
  background: #fff;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--epi-green-800);
}
.footer a {
  color: var(--epi-green-800);
}
.footer a:hover {
  color: var(--epi-green-700);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  nav ul {
    gap: 0.5rem;
    font-size: 0.9rem;
  }
}