:root {
  --teal: #0f6b63;
  --teal-dark: #0a4d47;
  --sand: #d9c9a3;
  --sand-light: #f4efe4;
  --paper: #fbf9f5;
  --ink: #1f2624;
  --ink-soft: #4a5450;
  --hairline: #e2ddce;
  --red: #7a1f1f;
  --green: #1f5c3d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 0.5em;
}

a { color: var(--teal-dark); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- banner strip ---- */
.banner-strip {
  width: 100%;
  padding: 18px 20px;
  text-align: center;
}
.banner-strip p {
  margin: 0;
}
.banner-line {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 10px;
}
.banner-neutral {
  background: var(--teal);
  color: #fff;
}
.banner-label {
  font-weight: 600;
}
.banner-phone {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  padding: 4px 2px;
}
.banner-closed {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.banner-until {
  font-weight: 400;
}
@media (max-width: 480px) {
  .banner-strip { padding: 16px 16px; }
  .banner-line { flex-direction: column; gap: 6px; }
}

/* ---- header / footer ---- */
.site-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.site-header h1 {
  font-size: 2rem;
  margin: 0;
}

.hero {
  padding: 32px 0 8px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.card {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card-col h3 {
  font-size: 1rem;
  margin-top: 1.2em;
}
.card-col h3:first-child { margin-top: 0; }

.tel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  max-width: 320px;
}
.tel-button:hover { background: var(--teal-dark); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
}
.hours-table th { color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--sand-light);
  padding: 24px 0 40px;
  margin-top: 24px;
}
.site-footer p {
  margin: 0.3em 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---- admin ---- */
.admin-body {
  background: var(--sand-light);
}
.admin-wrap, .login-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.login-wrap { padding-top: 80px; }

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-header h1 { margin: 0; }

.link-button {
  background: none;
  border: none;
  color: var(--teal-dark);
  text-decoration: underline;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.admin-label {
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.preview-frame {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}
.preview-frame .banner-strip { padding: 14px 16px; }

.success-banner {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.error-banner {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.status-toggle {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .status-toggle { grid-template-columns: 1fr; }
}
.status-toggle legend {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  margin-bottom: 10px;
  grid-column: 1 / -1;
}
.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 10px;
  border-radius: 8px;
  border: 3px solid var(--hairline);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  background: #fff;
}
.toggle-option input { width: 20px; height: 20px; }
.toggle-open:has(input:checked) {
  border-color: var(--green);
  background: #e7f3ec;
  color: var(--green);
}
.toggle-closed:has(input:checked) {
  border-color: var(--red);
  background: #f7e9e9;
  color: var(--red);
}

.field-label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
}

textarea, input[type="date"], input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  margin-bottom: 4px;
  background: #fff;
  color: var(--ink);
}

.char-count {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.save-button {
  width: 100%;
  min-height: 56px;
  padding: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}
.save-button:hover { background: var(--teal-dark); }

.login-form .save-button { margin-top: 20px; }

/* ---- mobile ---- */
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .admin-wrap, .login-wrap {
    padding: 24px 16px 40px;
  }
  .login-wrap { padding-top: 56px; }
  .site-header {
    padding: 28px 0 20px;
  }
  .site-header h1 {
    font-size: 1.6rem;
  }
  #hours-heading, .admin-header h1, .login-wrap h1 {
    font-size: 1.4rem;
  }
  .hero {
    padding: 24px 0 8px;
  }
  .tel-button {
    max-width: none;
  }
}
