/* TheBestKitchens.com — shared stylesheet
   Round 2, 2026-11-26 (Bill's choice): light white/cream base with a
   soft sage-green accent and a gentle blue pop — replaces the old
   walnut-brown/brass scheme, which Bill said still dominated the site.
   Variable names (--walnut etc.) kept so every page still works;
   only the values changed. To swap the pop colour to blue instead,
   change --accent-pop below. */

:root {
  --walnut: #4e6b52;       /* deep sage — was walnut #6b3f22 */
  --walnut-dark: #38503d;  /* darker sage — was #472a14 */
  --bark: #2c3a2e;         /* dark sage-charcoal headings/footer */
  --cream: #fefefb;        /* near-white base */
  --cream-dark: #eef3ea;   /* pale sage tint for alt sections */
  --brass: #8fb996;        /* soft sage accent — was brass #c98d54 */
  --brass-dark: #5f8a6b;
  --accent-pop: #7aa8c4;   /* gentle blue pop (buttons' hover ring, links) */
  --ink: #26302a;
  --muted: #6b7a6e;
  --line: #dbe5d8;
  --success-bg: #eef6e9;
  --success-border: #9dbf8a;
  --error-bg: #fbeeec;
  --error-border: #d89a92;
  --radius: 16px;
  --shadow-soft: 0 10px 30px rgba(44, 58, 46, 0.10);
  --shadow-card: 0 4px 18px rgba(44, 58, 46, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.container.narrow { max-width: 760px; }

a { color: var(--walnut); }
a:hover { color: var(--brass-dark); }

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--bark);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h2 { font-size: 1.75rem; }

img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(90deg, var(--walnut-dark), var(--walnut));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(44, 58, 46, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #fff;
}

.brand:hover { color: #fff; }

.brand-mark {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 5px;
}

.brand-name {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: bold;
}

.brand-tagline {
  display: block;
  font-size: 0.78rem;
  color: #d9e6d6;
  max-width: 430px;
  line-height: 1.4;
}

.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.main-nav a {
  color: #eef3ea;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
}

.main-nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  /* Round 2: light white/sage-tint hero, no more warm tan wash. */
  background: linear-gradient(135deg, #ffffff 0%, #f2f6ef 55%, #e6efe2 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  /* Round 2 (Bill): text aligns to the TOP of the hero image, not
     vertically centred — and the gap under the header is tightened. */
  align-items: flex-start;
  gap: 42px;
  padding-top: 34px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 360px; }
.hero-copy h1 { font-size: 2.45rem; margin: 0 0 14px; }
.hero-sub { font-size: 1.1rem; color: var(--bark); margin: 0 0 24px; }
.hero-note { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }
/* Round 2 (Bill): hero picture was too big and pushed the headline
   down — smaller now, so the text sits at the top. */
.hero-art { flex: 1 1 300px; max-width: 420px; }
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--walnut); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--walnut-dark); color: #fff; }
.btn-light { background: #fff; color: var(--walnut-dark); }
.btn-light:hover { background: var(--cream-dark); color: var(--walnut-dark); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--cream-dark); }
.section h2 { margin-top: 0; }

.cards {
  display: grid;
  /* Round 2 (Bill): the old auto-fit row let the third card render
     much wider than the first two and push off-screen at full width.
     Fixed three equal columns; minmax(0, 1fr) + min-width: 0 on the
     cards stops any single card from forcing the row wider. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 22px 24px 24px; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card-body p { margin-bottom: 0; }

/* Stats page cards have no image — give them comfortable padding. */
.container.narrow .card { padding: 22px 24px; margin-bottom: 20px; }

.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  margin-bottom: 16px;
  padding-left: 52px;
  position: relative;
  min-height: 38px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--walnut);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-band {
  background: linear-gradient(120deg, var(--walnut-dark), var(--walnut) 60%, #5f8a6b);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 { color: #fff; margin-top: 0; font-size: 2rem; }
.cta-band p { color: #dce8d8; max-width: 620px; margin: 0 auto 18px; text-align: left; }
.cta-line { font-weight: 600; color: #fff !important; font-size: 1.05rem; }

/* ---------- Form ---------- */
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 26px;
  box-shadow: var(--shadow-card);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bark);
}

.field .required { color: #b3402e; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--cream);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  background: #fff;
}

.field small { display: block; color: var(--muted); margin-top: 5px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
}

.notice-success { background: var(--success-bg); border: 1px solid var(--success-border); }
.notice-error { background: var(--error-bg); border: 1px solid var(--error-border); }

/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 28px; font-size: 1.2rem; }
.legal-updated { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: #e3ede0;
  margin-top: 0;
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand strong { font-size: 1.05rem; color: #fff; }
.footer-brand p { color: #c9d8c6; max-width: 380px; margin: 6px 0 0; font-size: 0.92rem; }

/* Footer links run horizontally in two short rows (Bill, 2026-11-26). */
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-row { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #e3ede0; text-decoration: none; font-size: 0.96rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.87rem;
  color: #c9d8c6;
}

/* Acquisition line: light text on the dark footer so it is easy to
   read (Bill flagged the old dark-on-dark version, 2026-11-26). */
.footer-note { font-size: 0.95rem; color: #f2f6ef; margin-top: 8px; }
.footer-note a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero-copy h1 { font-size: 1.85rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand-tagline { max-width: 100%; }
  .section { padding: 38px 0; }
  .hero-inner { padding-top: 38px; padding-bottom: 38px; }
  .lead-form { padding: 22px; }
  .footer-nav-row { gap: 18px; }
}
