:root {
  --primary: #2d5a27;
  --primary-light: #447a3d;
  --secondary: #d4a373;
  --bg: #fdfaf6;
  --surface: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e2e8f0;
  --error: #e53e3e;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  color: var(--primary);
  line-height: 1.2;
}

h2 {
  margin-bottom: 2rem;
  text-align: center;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--primary);
}

.site-header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.site-header a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 4rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

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

.hero .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Form Section */
.calculator-section {
  padding: 4rem 0;
}

.watering-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--surface);
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--primary-light);
}

/* Result */
.result-card {
  margin-top: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--primary);
}

.result-card.hidden {
  display: none;
}

.metric-display {
  font-size: 3rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 1rem 0;
}

.warning {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fffbeb;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #92400e;
}

/* Guide */
.guide-section {
  padding: 4rem 0;
  background-color: var(--surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  text-align: center;
  color: var(--text-light);
}

.site-footer nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-header nav {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
