/*
Theme Name: Nestwell
Theme URI: https://www.takecarenest.com/
Description: Quiet house-care layout for Take Care Nest.
Author: Take Care Nest
Version: 1.1.0
Text Domain: nestwell
*/

:root {
  --nw-paper: #f3f0ea;
  --nw-card: #fffcf8;
  --nw-ink: #1e1c19;
  --nw-muted: #5e5953;
  --nw-line: #e3ddd3;
  --nw-accent: #1f4e4a;
  --nw-accent-soft: #e6f1ef;
  --nw-max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nw-paper);
  color: var(--nw-ink);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.65;
}

a { color: var(--nw-accent); }

img { max-width: 100%; height: auto; }

.nw-skip {
  position: absolute;
  left: -999px;
}

.nw-skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .4rem .6rem; }

.nw-head {
  background: var(--nw-card);
  border-bottom: 1px solid var(--nw-line);
}

.nw-head-inner,
.nw-wrap {
  width: min(var(--nw-max), calc(100% - 3rem));
  margin: 0 auto;
}

.nw-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.5rem;
  padding: 1.1rem 0;
}

.nw-brand {
  text-decoration: none;
  color: var(--nw-ink);
}

.nw-brand strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nw-brand span {
  display: block;
  margin-top: .15rem;
  color: var(--nw-muted);
  font-size: 1rem;
}

.nw-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nw-nav a {
  color: var(--nw-ink);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 600;
}

.nw-nav a:hover { color: var(--nw-accent); }

.nw-main { padding-bottom: 3rem; }

.nw-hero {
  padding: 5.5rem 0 3.5rem;
}

.nw-kicker {
  margin: 0 0 1rem;
  color: var(--nw-accent);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nw-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.nw-hero p {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--nw-muted);
  font-size: 1.45rem;
  line-height: 1.45;
}

.nw-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--nw-accent);
}

.nw-section { padding: 3.2rem 0 1.4rem; }

.nw-section h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nw-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--nw-line);
}

.nw-area {
  display: block;
  min-height: 9.5rem;
  padding: 1.7rem 1.4rem 1.5rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--nw-line);
}

.nw-area small {
  display: block;
  color: var(--nw-muted);
  font-size: .95rem;
  letter-spacing: .08em;
}

.nw-area strong {
  display: block;
  margin: .4rem 0 .25rem;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.nw-area span { color: var(--nw-muted); font-size: 1.12rem; }

.nw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.nw-step {
  background: var(--nw-card);
  border: 1px solid var(--nw-line);
  min-height: 13rem;
  padding: 1.6rem 1.4rem 1.4rem;
}

.nw-step b {
  display: block;
  color: var(--nw-accent);
  font-size: 1rem;
  letter-spacing: .08em;
}

.nw-step strong {
  display: block;
  margin: .55rem 0 .4rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.nw-step p { margin: 0; color: var(--nw-muted); font-size: 1.12rem; }

.nw-reads {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.25rem;
}

.nw-read {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 18rem;
  background: var(--nw-card);
  border: 1px solid var(--nw-line);
  padding: 1.6rem 1.4rem 1.4rem;
  text-decoration: none;
  color: inherit;
}

.nw-read em {
  font-style: normal;
  color: var(--nw-accent);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nw-read h3 {
  margin: .7rem 0;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.nw-read p { margin: 0; color: var(--nw-muted); font-size: 1.08rem; }

.nw-note,
.nw-next {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--nw-line);
}

.nw-note p,
.nw-next p { margin: .4rem 0 0; color: var(--nw-muted); font-size: 1.25rem; }

.nw-foot {
  border-top: 1px solid var(--nw-line);
  padding: 2rem 0 2.4rem;
  color: var(--nw-muted);
  font-size: 1.08rem;
}

.nw-foot p { margin: 0; }

.single .nw-article,
.page .nw-article,
.archive .nw-article,
.search .nw-article,
.error404 .nw-article {
  width: min(52rem, calc(100% - 3rem));
  margin: 3rem auto 4rem;
}

.nw-article h1 {
  margin: .3rem 0 .6rem;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.nw-meta { color: var(--nw-muted); margin: 0 0 1.4rem; }

.nw-content h2 { margin-top: 1.6em; font-size: 2rem; letter-spacing: -0.03em; }
.nw-content h3 { margin-top: 1.2em; }
.nw-content li { margin: .35rem 0; }

.nw-list { list-style: none; margin: 0; padding: 0; }
.nw-list li { border-bottom: 1px solid var(--nw-line); }
.nw-list a {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  color: var(--nw-ink);
  font-size: 1.35rem;
  font-weight: 600;
}
.nw-list span { display: block; font-weight: 400; color: var(--nw-muted); }

.fleet-reader-links {
  background: transparent !important;
  color: var(--nw-muted) !important;
  padding: 0 0 2rem !important;
  text-align: left !important;
  width: min(var(--nw-max), calc(100% - 2.4rem));
  margin: 0 auto;
}

.fleet-reader-links a {
  color: var(--nw-accent) !important;
  margin: 0 1rem 0 0 !important;
}

.tcm-note,
.nw-content .tcm-note {
  background: var(--nw-accent-soft);
  border-left: 3px solid var(--nw-accent);
  padding: .8rem 1rem;
}

@media (max-width: 800px) {
  .nw-head-inner { flex-direction: column; align-items: flex-start; }
  .nw-areas,
  .nw-steps,
  .nw-reads,
  .nw-note,
  .nw-next { grid-template-columns: 1fr; }
  .nw-hero { padding-top: 2.4rem; }
}
