/* ================================
   LawnCare Website Styles
   Modern + Clean Layout (Responsive)
   ================================ */

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ============================
   STICKY FOOTER FIX
   ============================ */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* main grows to fill remaining space */
}

.site-footer {
    flex-shrink: 0;
}


body {
    font-family: Arial, sans-serif;
    background: url("/images/background.png") no-repeat center center fixed;
    background-size: cover;    /* makes image scale to fill screen */
    background-attachment: fixed; /* optional: keeps it still while scrolling */
    background-color: #f4f6f9;  /* fallback if image fails */
    margin: 0;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}



/* ============================
   HEADER (Compact + Clean)
   ============================ */
/* ============================
   HEADER (Compact Like Admin)
   ============================ */
.site-header {
  background: #2b7a2b;
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* horizontal spacing only */
}

.logo a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav a {
  margin-left: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}


/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: #e9efea;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  color: #555;
  font-size: 0.95rem;
  border-top: 1px solid #d6e0d6;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  background: linear-gradient(135deg, #e9f8ea, #ffffff);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 30px;
}

.hero h2 {
  font-size: 2rem;
  color: #1f5c1f;
  margin-bottom: 15px;
}

.hero p {
  color: #444;
  max-width: 650px;
  margin: 0 auto 25px;
  font-size: 1.05rem;
}

/* ============================
   CARDS
   ============================ */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.card h3, .card h4 {
  color: #1f5c1f;
  margin-bottom: 10px;
}

.card ul {
  list-style: disc;
  margin-left: 20px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #2b7a2b;
  color: white;
}

.btn-primary:hover {
  background: #246924;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ddd;
  color: #333;
}

.btn-secondary:hover {
  background: #ccc;
}

/* ============================
   FORMS
   ============================ */
form {
  margin-top: 10px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #2b7a2b;
  box-shadow: 0 0 4px rgba(43,122,43,0.2);
}

table td a.btn {
  margin-right: 6px;
}

.card p strong {
  color: #2b7a2b;
}

/* ============================
   TABLES (Invoices, etc.)
   ============================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f2f9f2;
  color: #2b7a2b;
  font-weight: 600;
}

tr:hover {
  background: #f9fdf9;
}

/* ============================
   ALERTS
   ============================ */
.notice, .success, .error {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 500;
}

.notice {
  background: #fff3cd;
  color: #856404;
}

.success {
  background: #d4edda;
  color: #155724;
}

.error {
  background: #f8d7da;
  color: #721c24;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 6px 10px;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  table, th, td {
    font-size: 0.9rem;
  }
}
