/* Car Detailing Clay Bar Calculator - Styles */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 2rem 0;
  text-align: center;
}
.site-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 600;
}
.tagline {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}
.calc-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}
.form-group input[type="number"] {
  padding-right: 0.75rem;
}
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-primary {
  background: #3498db;
  color: white;
}
.btn-primary:hover {
  background: #2980b9;
}
.btn-secondary {
  background: #f1f3f4;
  color: #5f6368;
}
.btn-secondary:hover {
  background: #e8eaed;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}
.results-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid #3498db;
}
.results-card h2 {
  margin-top: 0;
  color: #2c3e50;
}
.result-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.result-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}
.result-label {
  display: block;
  font-size: 0.85rem;
  color: #5f6368;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}
.usage-tips h3 {
  margin-top: 0;
  color: #2c3e50;
}
.usage-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.usage-steps li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e8ed;
}
.usage-steps li:last-child {
  border-bottom: none;
}
.usage-steps li::before {
  content: "Step";
  display: inline-block;
  width: 20px;
  font-weight: 600;
  color: #3498db;
  margin-right: 0.5rem;
}
.result-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.examples-section, .faq-section, .tips-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.examples-section h2, .faq-section h2, .tips-section h2 {
  color: #2c3e50;
  margin-top: 0;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.example-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid #e1e8ed;
}
.example-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #2c3e50;
}
.example-inputs {
  font-size: 0.85rem;
  color: #5f6368;
  margin: 0.25rem 0;
}
.example-result {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.example-result span {
  display: inline-block;
  background: #e8f4fd;
  color: #2c3e50;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.faq-item h3 {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: #5f6368;
  margin: 0;
}
.tips-list {
  padding: 0;
  list-style: none;
}
.tips-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e8ed;
  position: relative;
  padding-left: 1.5rem;
}
.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: #3498db;
  border-radius: 50%;
}
.tips-list li:last-child {
  border-bottom: none;
}
.ad-sidebar {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  font-size: 0.9rem;
}
.site-footer {
  background: #2c3e50;
  color: #adbac7;
  padding: 1.5rem 0;
  text-align: center;
}
.site-footer .container {
  padding: 0;
}
.site-footer a {
  color: #e8f4fd;
  text-decoration: none;
  margin: 0 0.5rem;
}
.site-footer a:hover {
  text-decoration: underline;
}
.assumptions {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #7f8c8d;
}
.footer-nav {
  margin-top: 0.75rem;
}
.hidden {
  display: none;
}
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.8rem;
  }
  .calc-form {
    padding: 1.5rem;
  }
  .examples-section, .faq-section, .tips-section {
    padding: 1.25rem;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .ad-sidebar {
    min-height: 200px;
  }
}
@media (max-width: 480px) {
  .site-header {
    padding: 1.5rem 0 1rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .examples-section, .faq-section, .tips-section {
    padding: 1rem;
  }
}
@supports (display: grid) {
  .site-header h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
}


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