/* RenovateRight Budget Calculator Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: linear-gradient(135deg, #2c5282, #1a365d);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

main {
  padding: 40px 0;
}

section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h2 {
  color: #2c5282;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

h3 {
  color: #4a5568;
  margin: 25px 0 15px;
  font-size: 1.3rem;
}

.project-selector, .input-grid {
  margin-bottom: 20px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: #2c5282;
}

.primary-btn, .secondary-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.primary-btn {
  background: #2c5282;
  color: white;
}

.primary-btn:hover {
  background: #1a365d;
}

.secondary-btn {
  background: #edf2f7;
  color: #2c5282;
  margin-right: 10px;
  margin-top: 10px;
}

.secondary-btn:hover {
  background: #e2e8f0;
}

.cost-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item.total {
  border-top: 2px solid #cbd5e0;
  margin-top: 10px;
  padding-top: 15px;
}

.cost-item.grand-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c5282;
}

.label {
  font-weight: 500;
}

.amount {
  font-weight: 600;
}

.shopping-list ul {
  list-style: none;
  margin: 15px 0;
}

.shopping-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #2c5282;
}

.project-card h4 {
  margin-bottom: 10px;
  color: #2c5282;
}

.project-card .project-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c5282;
}

.hidden {
  display: none;
}

guide-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

guide-section li {
  margin-bottom: 8px;
}

site-footer {
  background: #2d3748;
  color: #a0aec0;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

site-footer a {
  color: #a0aec0;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }
  
  main {
    padding: 20px 0;
  }
  
  section {
    padding: 20px;
  }
  
  .input-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header, .site-footer, .actions, .saved-projects {
    display: none;
  }
  
  main {
    padding: 0;
  }
  
  section {
    box-shadow: none;
    padding: 0;
  }
}


/* 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;
}
