/* ============================================
   CHINTOUNANPOKU CARE AND RESTORATION CENTER
   Site stylesheet
   ============================================ */

:root {
  --bg-pale:      #F4F8FA;  /* paper-white with a blue cast */
  --blue-soft:    #C9DCE3;  /* panel fill */
  --blue-line:    #9FBCC4;  /* hairline borders */
  --blue-deep:    #6E92A0;  /* nav / headings on light */
  --text-main:    #51626A;  /* body copy — never true black */
  --text-quiet:   #8AA0A6;  /* footnotes, captions, legal */
  --lamp-warm:    #E8DCC0;  /* single warm accent, used sparingly */
  --white:        #FFFFFF;
  --focus-ring:   #3F6B7A;

  --font-display: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif;
  --font-body:    Verdana, Geneva, 'Trebuchet MS', sans-serif;
  --font-data:    Tahoma, Geneva, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-pale);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--blue-deep);
  text-decoration: underline;
}
a:hover { color: var(--focus-ring); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */

.page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---------- Header / weather strip ---------- */

.weather-strip {
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 5px 10px;
}

header.site-header {
  padding: 36px 20px 22px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.site-title {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin: 0 0 4px;
}

.site-subtitle {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0;
}

/* ---------- Nav ---------- */

nav.site-nav {
  background: var(--blue-soft);
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
}

nav.site-nav ul {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav.site-nav li { margin: 0; }

nav.site-nav a {
  display: block;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--blue-deep);
  border-right: 1px solid var(--blue-line);
}

nav.site-nav li:last-child a { border-right: none; }

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--focus-ring);
}

/* ---------- Hero (the window) ---------- */

.hero {
  margin: 28px 0 36px;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(110, 146, 160, 0.15);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.hero-copy { padding: 24px 28px; }

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--blue-deep);
  margin: 0 0 10px;
}

.hero-copy p { margin: 0 0 10px; }

/* Generic photo-panel pattern reused on About / Residents */
.photo-panel { padding: 0; overflow: hidden; }
.photo-panel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-panel .photo-caption {
  padding: 10px 18px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .hero-photo { height: 180px; }
  .photo-panel img { height: 160px; }
}

/* ---------- Panels / cards ---------- */

.panel {
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(110, 146, 160, 0.12);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--blue-deep);
  margin-top: 0;
  border-bottom: 1px solid var(--blue-soft);
  padding-bottom: 8px;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

/* ---------- Testimonial avatars (no faces) ---------- */

.testimonial { display: flex; gap: 16px; align-items: flex-start; }
.avatar-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
}

.testimonial.incomplete .avatar-mark {
  background: repeating-linear-gradient(
    45deg, var(--blue-soft), var(--blue-soft) 4px,
    var(--white) 4px, var(--white) 8px
  );
}

/* ---------- Forms ---------- */

label { display: block; font-weight: bold; margin: 18px 0 6px; font-size: 13px; color: var(--blue-deep); }
label:first-of-type { margin-top: 0; }

textarea, select, input[type="text"], input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  background: var(--bg-pale);
  color: var(--text-main);
}

textarea { min-height: 90px; resize: vertical; }

input[type="range"] { width: 100%; }

.range-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-quiet); font-family: var(--font-data); }
.range-value { font-family: var(--font-data); font-size: 13px; color: var(--blue-deep); text-align: center; margin-top: 2px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-weight: normal; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { margin: 0; font-weight: normal; color: var(--text-main); }

button, .btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  background: var(--blue-deep);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 10px 24px;
  cursor: pointer;
  margin-top: 18px;
}
button:hover, .btn:hover { background: var(--focus-ring); }

.result-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--blue-line);
  background: var(--bg-pale);
  display: none;
  white-space: pre-line;
}
.result-box.show { display: block; }
.result-box.type-u {
  border-color: var(--lamp-warm);
  background: #FFFDF6;
}
.ref-code {
  font-family: var(--font-data);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
  font-weight: bold;
}

/* ---------- Footer ---------- */

footer.site-footer {
  text-align: center;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
  padding: 30px 20px 50px;
}
footer.site-footer p { margin: 2px 0; }

/* ---------- 404 ---------- */

body.notfound {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.notfound-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-quiet);
  text-align: center;
}
