
/* ═══════════════════════════════════════════════════════════════
   Quiet Hours Guide — styles.css
   Design: Editorial Civic — authority meets approachability
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  --ink:         #0D1F30;
  --ink-soft:    #3D5166;
  --rust:        #C0441D;
  --rust-light:  #F5EAE5;
  --cream:       #F6F3EE;
  --white:       #FFFFFF;
  --border:      #DDD9D2;
  --border-light:#EDEBE6;
  --green:       #1B5E3A;
  --green-light: #E6F2EC;
  --amber:       #B86B00;
  --amber-light: #FFF4E0;
  --navy:        #1B3357;
  --navy-light:  #E8EDF5;
  --max-w:       860px;
  --max-w-wide:  1100px;
  --radius:      4px;
  --shadow-sm:   0 1px 4px rgba(13,31,48,0.08);
  --shadow:      0 2px 12px rgba(13,31,48,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 2rem 0 .75rem; padding-top: .5rem; border-top: 2px solid var(--border); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
h4 { font-size: .95rem; font-weight: 700; margin: 1rem 0 .4rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: .85em; color: var(--ink-soft); }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: var(--max-w-wide); }
.page-body { padding: 2.5rem 0 4rem; }

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--rust);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.site-logo:hover { text-decoration: none; color: #fff; opacity: .9; }
.logo-icon {
  width: 28px; height: 28px;
  background: var(--rust);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.site-nav a {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; text-decoration: none; }
.site-nav a.active { border-bottom: 2px solid var(--rust); padding-bottom: 2px; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 1.25rem 2.5rem;
  border-bottom: 4px solid var(--rust);
}
.hero__tag {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .75rem;
  max-width: 700px;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin-bottom: 0;
  font-weight: 300;
}

/* ─── FAST ANSWER BOX ───────────────────────────────────────── */
.fast-answer {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.fast-answer__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4rem;
}
.fast-answer p { margin: 0; font-weight: 600; font-size: 1rem; }

/* ─── QUICK FACTS TABLE ─────────────────────────────────────── */
.facts-table-wrap {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.facts-table-wrap table { width: 100%; border-collapse: collapse; background: var(--white); }
.facts-table-wrap th {
  background: var(--navy);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: .65rem 1rem;
}
.facts-table-wrap td {
  padding: .7rem 1rem;
  font-size: .95rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.facts-table-wrap tr:last-child td { border-bottom: none; }
.facts-table-wrap tr:nth-child(even) td { background: var(--cream); }
.facts-table-wrap td:first-child { font-weight: 600; color: var(--ink-soft); width: 45%; }
.facts-table-wrap td:last-child { color: var(--ink); }
.night-row td { background: var(--navy-light) !important; }
.night-row td:first-child { color: var(--navy); }
.night-row td:last-child { font-weight: 700; color: var(--navy); }

/* ─── INFO BOXES ────────────────────────────────────────────── */
.info-box {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.info-box--note { background: var(--navy-light); border-left: 3px solid var(--navy); }
.info-box--warn { background: var(--amber-light); border-left: 3px solid var(--amber); }
.info-box--good { background: var(--green-light); border-left: 3px solid var(--green); }
.info-box strong { display: block; margin-bottom: .3rem; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.info-box--note strong { color: var(--navy); }
.info-box--warn strong { color: var(--amber); }
.info-box--good strong { color: var(--green); }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { border-top-color: var(--rust); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  padding: .9rem 0;
  cursor: pointer;
  font-family: 'Libre Baskerville', serif;
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--rust);
  flex-shrink: 0;
  line-height: 1;
  margin-top: .05rem;
}
details[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 0 1rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.65; }
.faq-a p { margin-bottom: .6rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ─── COMPLAINT BOX ─────────────────────────────────────────── */
.complaint-box {
  background: var(--white);
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.complaint-box h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--rust);
  margin: 0 0 .75rem;
  border: none;
  padding: 0;
}
.complaint-box dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.complaint-box dt { font-weight: 700; color: var(--ink-soft); font-size: .875rem; }
.complaint-box dd { font-size: .875rem; }
.complaint-box dd a { color: var(--rust); font-weight: 600; }

/* ─── CARDS / GRID ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card a { text-decoration: none; color: inherit; display: block; }
.card a:hover { text-decoration: none; }
.card__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.card__title {
  font-family: 'Libre Baskerville', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.card__meta { font-size: .8rem; color: var(--ink-soft); }
.card__hours {
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-light);
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 2px;
}

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem;
  color: var(--ink-soft);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--rust); }
.breadcrumb span { margin: 0 .4rem; }

/* ─── RELATED SECTION ───────────────────────────────────────── */
.related-section {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-section h2 { border-top: none; margin-top: 0; padding-top: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.related-links a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rust);
  transition: background .15s, border-color .15s;
}
.related-links a:hover { background: var(--rust-light); border-color: var(--rust); text-decoration: none; }

/* ─── DISCLAIMER ────────────────────────────────────────────── */
.disclaimer {
  margin: 3rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--border-light);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.disclaimer strong { color: var(--ink); }

/* ─── TOOL PAGE ─────────────────────────────────────────────── */
.tool-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.tool-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tool-field { flex: 1; min-width: 200px; }
.tool-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.tool-field select {
  width: 100%;
  padding: .6rem .8rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D5166' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  cursor: pointer;
}
.tool-field select:focus { outline: none; border-color: var(--rust); }
#tool-results { margin-top: 1.5rem; }
.tool-result-table { width: 100%; border-collapse: collapse; }
.tool-result-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tool-result-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: .95rem;
}
.tool-result-table tr:last-child td { border-bottom: none; }
.tool-result-table td:first-child { font-weight: 700; color: var(--ink-soft); }
.tool-result-table .night { background: var(--navy-light); font-weight: 700; color: var(--navy); }
.tool-placeholder {
  text-align: center;
  padding: 2.5rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.tool-city-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .5rem 1rem;
  background: var(--rust);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
}
.tool-city-link:hover { background: #9E3820; text-decoration: none; }

/* ─── CHECKLIST PAGE ────────────────────────────────────────── */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-light);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-box {
  width: 18px; height: 18px; min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 3px;
  margin-top: .15rem;
  cursor: pointer;
}
.checklist-label { font-size: .95rem; line-height: 1.5; }
.checklist-label small { display: block; color: var(--ink-soft); margin-top: .15rem; }
.checklist-section { margin: 1.75rem 0 1rem; }
.checklist-section h3 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 .75rem;
  padding: .5rem .75rem;
  background: var(--rust-light);
  border-radius: var(--radius);
}
.print-btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.print-btn:hover { background: #142849; }

/* ─── HOMEPAGE SECTIONS ─────────────────────────────────────── */
.section-intro { padding: 2.5rem 1.25rem; }
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.state-pill {
  display: block;
  padding: .5rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  transition: all .15s;
}
.state-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }
.feature-strip {
  background: var(--rust);
  color: #fff;
  padding: 2rem 1.25rem;
}
.feature-strip h2 { color: #fff; border: none; margin: 0 0 .5rem; padding: 0; font-size: 1.3rem; }
.feature-strip p { color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.btn-white {
  display: inline-block;
  padding: .6rem 1.25rem;
  background: #fff;
  color: var(--rust);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
}
.btn-white:hover { background: var(--rust-light); text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

/* ─── ARTICLE SPECIFIC ──────────────────────────────────────── */
.article-body p { font-size: 1rem; line-height: 1.75; }
.article-body h2 { margin-top: 2.5rem; }
.article-body ul, .article-body ol {
  margin: .75rem 0 1rem 1.5rem;
  font-size: .975rem;
  line-height: 1.7;
}
.article-body li { margin-bottom: .4rem; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Libre Baskerville', serif;
  color: #fff;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin-bottom: .4rem;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}
.footer-logo {
  font-family: 'Libre Baskerville', serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.footer-tagline { color: rgba(255,255,255,.5); font-size: .8rem; margin-top: .2rem; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2rem 1.25rem; }
  .facts-table-wrap td, .facts-table-wrap th { padding: .55rem .75rem; }
  .complaint-box dl { grid-template-columns: 1fr; gap: .2rem; }
  .complaint-box dt { margin-top: .5rem; }
}
@media (max-width: 500px) {
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  h1 { font-size: 1.5rem; }
  .hero__title { font-size: 1.6rem; }
}

/* ─── PRINT ─────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .site-nav, .breadcrumb,
  .related-section, .print-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; border: 2px solid #000; padding: 1rem; margin-bottom: 1rem; }
  .hero__title, .hero__subtitle { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
  .checklist-box { border: 2px solid #000 !important; }
  .facts-table-wrap { border: 1px solid #000; }
  .facts-table-wrap th { background: #333 !important; -webkit-print-color-adjust: exact; }
}
