/* MemorialDay Planner - Production Stylesheet */
:root {
  --color-navy: #1e3a5f;
  --color-navy-dark: #152a45;
  --color-red: #b91c1c;
  --color-red-dark: #991b1b;
  --color-cream: #faf8f5;
  --color-sand: #f0ebe3;
  --color-text: #2d2a26;
  --color-text-light: #5c5650;
  --color-border: #d6d0c7;
  --color-white: #ffffff;
  --color-success: #166534;
  --color-tip-bg: #eff6ff;
  --color-tip-border: #bfdbfe;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-red); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--color-navy); color: var(--color-white);
  padding: 8px 16px; z-index: 100; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  background: var(--color-navy);
  padding: 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-white); text-decoration: none; font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
}
.logo:hover { color: var(--color-white); opacity: 0.9; }
.logo-icon { flex-shrink: 0; }

.site-nav ul { display: flex; list-style: none; gap: 24px; }
.site-nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.site-nav a:hover { color: var(--color-white); border-bottom-color: var(--color-red); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-white); border-radius: 1px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 80px 0 70px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.15;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.85; max-width: 600px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--color-red); color: var(--color-white); border-color: var(--color-red); }
.btn-primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); color: var(--color-white); }
.btn-secondary { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: var(--color-white); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--color-text-light);
  padding: 4px; border-radius: 4px; transition: var(--transition);
}
.btn-icon:hover { background: #fee2e2; color: var(--color-red); }

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  color: var(--color-navy-dark);
}

/* Section headers */
.section-header { margin-bottom: 28px; }
.section-header h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800; color: var(--color-navy-dark);
  margin-bottom: 8px;
}
.section-header p { color: var(--color-text-light); font-size: 16px; }

/* Planner section */
.planner-section { padding: 60px 0; }
.planner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Preset buttons */
.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preset-btn {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer; text-align: left;
  transition: var(--transition);
}
.preset-btn strong { font-size: 14px; color: var(--color-text); }
.preset-btn span { font-size: 12px; color: var(--color-text-light); }
.preset-btn:hover { border-color: var(--color-navy); }
.preset-btn.active {
  border-color: var(--color-navy);
  background: var(--color-navy);
}
.preset-btn.active strong { color: var(--color-white); }
.preset-btn.active span { color: rgba(255,255,255,0.75); }

/* Form elements */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--color-text-light); margin-bottom: 4px;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="time"],
.form-row select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-sans);
  color: var(--color-text); background: var(--color-white);
  transition: var(--transition);
}
.form-row input:focus, .form-row select:focus {
  outline: none; border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* Activity rows */
.activity-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 110px 36px;
  gap: 8px; margin-bottom: 10px; align-items: center;
}
.activity-row input, .activity-row select {
  padding: 8px 10px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 13px;
  font-family: var(--font-sans); width: 100%;
}

/* Preview area */
.preview-card { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; }
.preview-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Timeline */
.timeline { font-size: 14px; }
.timeline-day { margin-bottom: 20px; }
.timeline-day h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-navy);
  margin-bottom: 8px; padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}
.timeline-item {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--color-sand);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time { font-weight: 600; white-space: nowrap; min-width: 60px; color: var(--color-text-light); }
.timeline-label { flex: 1; }
.timeline-label strong { display: block; font-size: 14px; }
.timeline-label span { font-size: 12px; color: var(--color-text-light); }
.timeline-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge-travel { background: #dbeafe; color: #1e40af; }
.badge-event { background: #fef3c7; color: #92400e; }
.badge-remembrance { background: #fee2e2; color: #991b1b; }
.badge-family { background: #dcfce7; color: #166534; }
.buffer-note { font-size: 12px; color: var(--color-text-light); font-style: italic; margin-top: 4px; }

/* Packing list */
.packing-list { font-size: 14px; }
.packing-category { margin-bottom: 14px; }
.packing-category h4 {
  font-size: 13px; font-weight: 700; color: var(--color-navy);
  margin-bottom: 6px;
}
.packing-category ul { list-style: none; }
.packing-category li {
  padding: 4px 0; padding-left: 20px; position: relative;
}
.packing-category li::before {
  content: "☐"; position: absolute; left: 0; color: var(--color-text-light);
}

/* Tips */
.tips-list { list-style: none; font-size: 14px; }
.tips-list li {
  padding: 6px 0 6px 20px; position: relative;
}
.tips-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--color-red); font-weight: 700;
}

.empty-state { color: var(--color-text-light); font-style: italic; font-size: 14px; }

/* Guide section */
.guide-section { padding: 60px 0; background: var(--color-white); border-top: 1px solid var(--color-border); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.guide-block h3 {
  font-size: 18px; font-weight: 700; color: var(--color-navy-dark);
  margin-bottom: 12px;
}
.guide-block p, .guide-block li { font-size: 15px; color: var(--color-text-light); margin-bottom: 10px; }
.guide-block ul { padding-left: 20px; }
.guide-block dl { font-size: 15px; }
.guide-block dt { font-weight: 700; color: var(--color-text); margin-top: 12px; }
.guide-block dd { color: var(--color-text-light); margin-left: 0; margin-bottom: 4px; }

/* Examples section */
.examples-section { padding: 60px 0; }
.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.example-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.example-tag {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  background: var(--color-navy); color: var(--color-white);
  margin-bottom: 12px;
}
.example-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--color-navy-dark); }
.example-card p { font-size: 14px; color: var(--color-text-light); line-height: 1.6; }

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  margin-top: auto;
  font-size: 13px;
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-white); }
.site-footer nav ul { display: flex; list-style: none; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-note { font-size: 12px; opacity: 0.6; }

/* Responsive */
@media (max-width: 900px) {
  .planner-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; max-height: none; }
  .activity-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .activity-row input:first-child { grid-column: 1 / -1; }
  .activity-row .btn-icon { justify-self: end; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-navy); padding: 16px 20px; box-shadow: var(--shadow-md); }
  .site-nav.open ul { flex-direction: column; gap: 12px; }
  .nav-toggle { display: flex; }
  .hero { padding: 48px 0 40px; }
  .preset-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .hero, .planner-inputs, .preview-actions, .nav-toggle { display: none !important; }
  .planner-preview { display: block !important; }
  .preview-card { box-shadow: none; border: none; page-break-inside: avoid; }
  body { background: white; color: black; }
}



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