/*
 * Westlake Yard Website Styles
 *
 * This stylesheet defines the colors, layout and responsive styles for the
 * Westlake Yard site. The palette features dark and light greens to evoke
 * the feeling of nature and balance. Sections are spaced generously and
 * optimized for mobile via media queries.
 */

/* CSS variables for easy theming */
:root {
  --primary-color: #2c5f2d;     /* dark green */
  --secondary-color: #97bc62;   /* light green */
  --accent-color: #e6f0e0;      /* pale green/gray */
  --text-color: #333333;        /* dark text */
  --light-text-color: #ffffff;  /* light text */
  --max-width: 1200px;          /* max content width */
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* Container utility class */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header nav a {
  color: var(--light-text-color);
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

header nav a:hover {
  opacity: 0.8;
}

/* Hero section */
.hero {
  height: 60vh;
  min-height: 400px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://source.unsplash.com/random/1600x900?landscaping,garden');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text-color);
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--primary-color);
}

/* Section styles */
.about, .services, .contact {
  padding: 3rem 0;
  background-color: #ffffff;
}

.about h2, .services h2, .contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Services section */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

.service-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* Contact section */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  width: 100%;
}

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

.contact-form button {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 1rem 0;
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}