/* ============================================
   Pet Boarding Prep Checklist — styles.css
   ============================================ */

:root {
  --c-bg: #faf9f7;
  --c-surface: #ffffff;
  --c-surface-alt: #f3f0eb;
  --c-border: #e2ddd6;
  --c-text: #2d2a26;
  --c-text-sub: #6b6560;
  --c-accent: #d97706;
  --c-accent-light: #fef3c7;
  --c-accent-hover: #b45309;
  --c-green: #059669;
  --c-green-light: #d1fae5;
  --c-red: #dc2626;
  --c-red-light: #fee2e2;
  --c-radius: 10px;
  --c-radius-sm: 6px;
  --c-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --c-shadow-lg: 0 4px 16px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1120px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--c-accent-hover); text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-text);
  text-decoration: none;
}
.logo:hover, .logo:focus-visible { text-decoration: none; color: var(--c-accent); }

.main-nav {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
}
.main-nav a {
  padding: .4rem .75rem;
  border-radius: var(--c-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-sub);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible {
  background: var(--c-surface-alt);
  color: var(--c-text);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #f59e0b 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero-sub {
  font-size: 1.05rem;
  max-width: 640px;
  opacity: .92;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--c-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--c-accent-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(217,119,6,.25);
}
.btn-ghost {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text-sub);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--c-surface-alt);
  color: var(--c-text);
  text-decoration: none;
}
.btn-sm {
  padding: .35rem .75rem;
  font-size: .8rem;
}
.btn:active { transform: translateY(1px); }

/* Config Section */
.config-section {
  padding: 2.5rem 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.col-setup h2,
#checklist-heading,
#notes-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.form-row {
  margin-bottom: .85rem;
}
.form-row label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-text-sub);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.form-row input,
.form-row select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(217,119,6,.15);
}

.form-actions {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}

.saved-note {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--c-green);
  font-weight: 500;
  min-height: 1.2em;
}

/* Summary Card */
.summary-card,
.tip-card,
.note-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 1.25rem;
  box-shadow: var(--c-shadow);
}
.summary-card h3,
.tip-card h4,
.note-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.summary-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .75rem;
  font-size: .875rem;
}
.summary-card dt {
  font-weight: 600;
  color: var(--c-text-sub);
}
.summary-card dd {
  color: var(--c-text);
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--c-border);
}

.tip-card {
  margin-top: 1rem;
  background: var(--c-accent-light);
  border-color: #fde68a;
}
.tip-card h4 { color: #92400e; }
.tip-card p { font-size: .85rem; color: #78350f; }

/* Checklist Section */
.checklist-section {
  padding: 2rem 0;
  background: var(--c-surface-alt);
}
.cat-block {
  margin-bottom: 1.5rem;
}
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: .85rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius) var(--c-radius) 0 0;
  user-select: none;
}
.cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cat-progress {
  font-size: .8rem;
  color: var(--c-text-sub);
  font-weight: 500;
}
.cat-header .chevron {
  font-size: 1.1rem;
  transition: transform .2s;
  color: var(--c-text-sub);
}
.cat-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.cat-items {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--c-radius) var(--c-radius);
  overflow: hidden;
}
.cat-items[hidden] { display: none; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--c-border);
  transition: background .12s;
}
.check-item:last-child { border-bottom: none; }
.check-item:hover { background: var(--c-surface-alt); }
.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--c-green);
  margin-top: 2px;
  cursor: pointer;
}
.check-item label {
  font-size: .9rem;
  line-height: 1.45;
  cursor: pointer;
  flex: 1;
}
.check-item.checked label {
  text-decoration: line-through;
  color: var(--c-text-sub);
}
.check-item .item-detail {
  font-size: .78rem;
  color: var(--c-text-sub);
  margin-top: .15rem;
}

.item-input-row {
  display: flex;
  gap: .4rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}
.item-input-row input {
  padding: .3rem .5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: .8rem;
  font-family: var(--font);
  flex: 1;
  min-width: 120px;
}
.item-input-row input:focus {
  outline: none;
  border-color: var(--c-accent);
}

.add-custom {
  padding: .55rem 1rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.add-custom input {
  flex: 1;
  padding: .35rem .55rem;
  border: 1px dashed var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: .85rem;
  font-family: var(--font);
}
.add-custom input:focus {
  outline: none;
  border-color: var(--c-accent);
  border-style: solid;
}

/* Notes Section */
.notes-section {
  padding: 2.5rem 0;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.note-card p, .note-card ul {
  font-size: .875rem;
  color: var(--c-text-sub);
  line-height: 1.55;
}
.note-card ul { padding-left: 1.1rem; margin-top: .4rem; }
.note-card li { margin-bottom: .2rem; }

/* FAQ */
.faq-block {
  margin-bottom: 2rem;
}
.faq-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.faq-block details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  margin-bottom: .4rem;
  overflow: hidden;
}
.faq-block summary {
  padding: .7rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
}
.faq-block details[open] summary::before { content: "−"; }
.faq-block details p {
  padding: 0 1rem .75rem;
  font-size: .875rem;
  color: var(--c-text-sub);
  line-height: 1.55;
  margin-left: 1.35rem;
}

.assumptions-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 1.25rem;
}
.assumptions-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.assumptions-block p {
  font-size: .875rem;
  color: var(--c-text-sub);
  line-height: 1.55;
}
.last-updated {
  margin-top: .5rem;
  font-size: .78rem !important;
  color: var(--c-text-sub);
  font-style: italic;
}

/* Facility Sheet (hidden, print-only) */
.facility-sheet {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 1.5rem 0;
  font-size: .82rem;
  color: var(--c-text-sub);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-footer nav {
  display: flex;
  gap: .5rem;
}
.site-footer nav a {
  color: var(--c-text-sub);
  padding: .25rem .5rem;
}
.site-footer nav a:hover {
  color: var(--c-text);
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .config-section,
  .notes-section,
  .hero,
  .summary-actions,
  .form-actions,
  .add-custom,
  .tip-card,
  .saved-note,
  #ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .checklist-section { background: none; padding: 0; }
  .cat-header { border: 1px solid #ccc; }
  .cat-items { border: 1px solid #ccc; border-top: none; }
  .facility-sheet { display: block; }
  .fs-header h2 { font-size: 1.4rem; margin-bottom: 1rem; }
  .fs-content { font-size: .85rem; line-height: 1.5; }
  .fs-content h3 { margin-top: 1rem; margin-bottom: .4rem; font-size: 1rem; }
  .fs-content p, .fs-content li { margin-bottom: .25rem; }
  .fs-content ul { padding-left: 1.2rem; }
}

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .notes-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero h1 { font-size: 1.5rem; }
  .main-nav a { font-size: .8rem; padding: .3rem .5rem; }
  .summary-actions { flex-direction: column; }
  .summary-actions .btn { width: 100%; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Category color accents */
.cat-icon { font-size: 1.1rem; }



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