/* Maritime Inn Guest Directory — Best Western Style */

:root {
  --navy: #002b5c;
  --text: #1a1a1a;
  --muted: #555;
  --border: #c8c8c8;
  --border-light: #e2e2e2;
  --warning-red: #c0392b;
  --co-orange: #d4580a;
}

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

html {
  scroll-behavior: smooth;
}

/* ── BASE: mobile-first ───────────────────────────────────── */

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.page-wrapper {
  background: #ffffff;
  width: 100%;
}

/* HEADER */
.site-header {
  background: #ffffff;
  padding: 1.5rem 1rem 1.25rem;
  border-bottom: 3px solid var(--navy);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.bw-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* DOC PAGES */
.doc-page {
  padding: 1.5rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.doc-page-last {
  border-bottom: none;
}

/* SINGLE COLUMN DEFAULT (mobile) */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.doc-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-col + .doc-col {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* TYPOGRAPHY */
h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

li {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

a {
  color: var(--navy);
}

/* LEADER LIST — dot leaders for phone numbers */
.leader-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leader-list li {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 0.25rem;
}

.ll-label {
  flex-shrink: 0;
  font-size: 1rem;
}

.ll-fill {
  flex: 1;
  min-width: 1rem;
  position: relative;
}

.ll-fill::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.22em;
  border-bottom: 1px dotted #999;
}

.ll-value {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1rem;
}

.ll-emergency .ll-label,
.ll-emergency .ll-value {
  color: var(--warning-red);
  font-weight: 700;
}

.ll-emergency .ll-fill::after {
  border-bottom-color: var(--warning-red);
}

/* SCHEDULE LIST */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.schedule-list li span:last-child {
  font-weight: 600;
  flex-shrink: 0;
}

/* CARBON MONOXIDE WARNING */
.co-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.co-triangle {
  flex-shrink: 0;
  width: 50px;
  height: 44px;
  background: var(--co-orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  padding-bottom: 5px;
}

.co-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.co-warning-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.1rem;
}

.co-title h2 {
  margin: 0;
}

/* SYMPTOM COLUMNS — single column on mobile */
.symptom-cols {
  columns: 1;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.symptom-cols li {
  break-inside: avoid;
}

/* FOOTER */
.site-footer {
  background: #ffffff;
  border-top: 2px solid var(--navy);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.footer-info {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* ── DESKTOP: two-column layout at ≥640px ─────────────────── */

@media (min-width: 640px) {
  body {
    background: #ddd;
  }

  .page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
    min-height: 100vh;
  }

  .site-header {
    padding: 1.75rem 2.5rem 1.5rem;
  }

  .bw-logo {
    height: 100px;
  }

  h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
  }

  .doc-page {
    padding: 2.25rem 2.5rem 2.5rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .doc-col {
    gap: 1.5rem;
  }

  .doc-col + .doc-col {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .symptom-cols {
    columns: 2;
    column-gap: 1rem;
  }

  .site-footer {
    padding: 1.75rem 2.5rem 2rem;
  }
}

/* ── PRINT ────────────────────────────────────────────────── */

@media print {
  body { background: white; font-size: 10pt; }
  .page-wrapper { box-shadow: none; max-width: none; }
  .site-header { padding: 1rem; border-bottom: 2px solid var(--navy); }
  .doc-page { padding: 1rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer { padding: 1rem; }
}
