/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f7fafc;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: #2b6cb0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c5282;
  text-decoration: underline;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2d3748;
  text-decoration: none;
}

.logo svg {
  color: #e53e3e;
}

.logo:hover {
  text-decoration: none;
  color: #1a202c;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  color: #4a5568;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a.active,
.main-nav a:hover {
  color: #2b6cb0;
  border-bottom-color: #2b6cb0;
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #ebf4ff 0%, #e9d8fd 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Generator Section ===== */
.generator-section {
  padding: 2.5rem 0 3rem;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid #edf2f7;
}

.generator-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.packing-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label,
.activities-group legend {
  font-weight: 600;
  font-size: 0.875rem;
  color: #4a5568;
}

.form-group input,
.form-group select {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #2d3748;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.activities-row {
  width: 100%;
}

.activities-group {
  flex: 1;
  min-width: 100%;
}

.activities-group legend {
  margin-bottom: 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #2b6cb0;
}

.btn-primary {
  align-self: flex-start;
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.btn-primary:hover {
  background: #c53030;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: #edf2f7;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

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

/* ===== Packing Result ===== */
.packing-result {
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

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

.result-header {
  margin-bottom: 1rem;
}

.result-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.weather-summary {
  color: #4a5568;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  background: #ebf8ff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f7fafc;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid #e53e3e;
}

.checklist li::before {
  content: "☐";
  font-size: 1.1rem;
  color: #a0aec0;
}

/* ===== Info Section ===== */
.info-section {
  padding: 2.5rem 0 3rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

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

.info-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.info-icon {
  margin-bottom: 1rem;
  color: #2b6cb0;
  display: flex;
  justify-content: center;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.info-card p {
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 3rem 0 3rem;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2d3748;
}

.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid #edf2f7;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.step p {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  background: #2d3748;
  color: #e2e8f0;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #bee3f8;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 0.85rem;
  color: #a0aec0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }
}

/* ===== About / Legal Pages ===== */
.page-content {
  padding: 3rem 0;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: #2d3748;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #4a5568;
}

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #4a5568;
}

.page-content li {
  margin-bottom: 0.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;
}
