/* ============================================================
   Warm Community — Cedar County demo template
   Earthy palette, rounded friendly shapes, photo-forward feel.
   Pure hand-written CSS. System fonts only. No frameworks.
   ============================================================ */

:root {
  --clay:        #b5562f;   /* terracotta / clay */
  --clay-dark:   #8f3f20;
  --clay-soft:   #d98a63;
  --green:       #5a6e4a;   /* warm sage / olive green */
  --green-dark:  #3f5135;
  --green-soft:  #8a9b6f;
  --sand:        #f4ebdc;   /* sand / cream background */
  --cream:       #fbf6ec;
  --paper:       #ffffff;
  --bark:        #463528;   /* soft brown text */
  --bark-soft:   #6f5b49;
  --gold:        #d9a441;   /* sunflower accent */
  --line:        #e3d6bf;
  --radius:      18px;
  --radius-lg:   30px;
  --shadow:      0 14px 34px rgba(70, 53, 40, 0.12);
  --shadow-sm:   0 6px 16px rgba(70, 53, 40, 0.10);
  --font:        Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-ui:     "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--bark);
  background: var(--sand);
  line-height: 1.65;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--bark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--clay);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 2000;
  font-family: var(--font-ui);
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- Top greeting bar ---------- */
.greetbar {
  background: var(--green-dark);
  color: #f0ead9;
  font-family: var(--font-ui);
  font-size: 14px;
}
.greetbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}
.greetbar a { color: #fff; text-decoration: none; }
.greetbar a:hover { text-decoration: underline; }
.greetbar__links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Header / brand ---------- */
.brandbar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.brandbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.crest {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, var(--gold) 0 22%, transparent 23%),
    linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-size: 30px;
  margin: 0;
  color: var(--bark);
}
.brand__tag {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--clay);
  font-style: italic;
}

/* ---------- Primary navigation ---------- */
.mainnav {
  background: var(--clay);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.mainnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.mainnav a {
  display: block;
  padding: 15px 22px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 4px solid transparent;
}
.mainnav a:hover { background: var(--clay-dark); }
.mainnav a[aria-current="page"] {
  background: var(--clay-dark);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 40px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--clay-dark); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); }
.btn--green {
  background: var(--green);
  color: #fff;
}
.btn--green:hover { background: var(--green-dark); }

/* ---------- Photo placeholders ---------- */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(70,53,40,0.55), rgba(70,53,40,0) 55%);
}
.photo__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 16px 18px;
  font-style: italic;
}
.photo--park    { background: linear-gradient(135deg, #7c8f57 0%, #4d6238 60%, #38502c 100%); }
.photo--creek   { background: linear-gradient(135deg, #6ba0a6 0%, #4f7d83 55%, #355f5f 100%); }
.photo--harvest { background: linear-gradient(135deg, #d99a4e 0%, #c1702f 60%, #99511f 100%); }
.photo--square  { background: linear-gradient(135deg, #d98a63 0%, #b5562f 60%, #8f3f20 100%); }
.photo--fair    { background: linear-gradient(135deg, #e2b552 0%, #d28a3a 55%, #a85f24 100%); }
.photo--trail   { background: linear-gradient(135deg, #9bab74 0%, #6b8049 55%, #4a5e30 100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 18%, rgba(217,164,65,0.30) 0 25%, transparent 26%),
    linear-gradient(150deg, #6c7f53 0%, #4d6238 55%, #3f5135 100%);
  color: #fff;
  padding: 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 {
  color: #fff;
  font-size: 46px;
  margin-bottom: 16px;
}
.hero p {
  font-size: 20px;
  color: #f2ecdc;
  max-width: 38ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.hero__photo { min-height: 320px; }
.hero__eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-sand  { background: var(--sand); }
.section-green {
  background: var(--green-dark);
  color: #f2ecdc;
}
.section-green h2, .section-green h3 { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: 34px; }
.section-head p {
  font-family: var(--font-ui);
  color: var(--bark-soft);
  font-size: 17px;
  margin: 0;
}
.section-green .section-head p { color: #d8e0c8; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 8px;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; }
.card p {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--bark-soft);
  margin: 0 0 14px;
}
.card__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--clay-dark);
}
.card__link:hover { text-decoration: underline; }
.card__phone {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--green-dark);
  background: var(--sand);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 15px;
}
.card--icon { position: relative; }
.card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--clay-soft), var(--clay));
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ---------- Story / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.split__photo { min-height: 340px; }
.story p {
  font-size: 18px;
  margin-bottom: 18px;
}
.story .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 24px;
}
.stat__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--clay);
  display: block;
  line-height: 1.1;
}
.stat__label {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--bark-soft);
}

/* ---------- Events / highlights ---------- */
.event {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.event__date {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  background: var(--clay);
  color: #fff;
  border-radius: 14px;
  padding: 10px 6px;
  font-family: var(--font-ui);
}
.event__date .m { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.event__date .d { display: block; font-size: 26px; font-weight: 700; }
.event__body h3 { font-size: 19px; margin-bottom: 4px; }
.event__body p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--bark-soft);
  margin: 0;
}
.event__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
}

/* ---------- Quick links band ---------- */
.quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.quicklinks a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--bark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 11px 22px;
  box-shadow: var(--shadow-sm);
  transition: background 0.12s ease, color 0.12s ease;
}
.quicklinks a:hover { background: var(--gold); color: var(--bark); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background:
    radial-gradient(circle at 88% 30%, rgba(217,164,65,0.28) 0 30%, transparent 31%),
    linear-gradient(140deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: #fff;
  padding: 46px 0;
}
.page-header h1 { color: #fff; font-size: 40px; margin: 0; }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #f3d8c6;
  margin-bottom: 10px;
}
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Services list ---------- */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.services-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--bark);
  box-shadow: var(--shadow-sm);
  transition: border-left-color 0.12s ease, transform 0.12s ease;
}
.services-list a:hover {
  border-left-color: var(--clay);
  transform: translateX(4px);
}
.services-list strong { font-size: 19px; display: block; }
.services-list span {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--bark-soft);
  display: block;
}
.svc-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--green-dark);
  font-family: var(--font-ui);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- News list ---------- */
.news-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.news-item .meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--bark-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-item h3 { font-size: 22px; }
.news-item p {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--bark-soft);
  margin: 0;
}
.tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 30px;
  padding: 4px 13px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.info-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.info-block h3 {
  font-size: 16px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clay);
  margin-bottom: 6px;
}
.info-block p { margin: 0; font-family: var(--font-ui); font-size: 16px; }
.map-embed {
  min-height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #9bab74 0%, #6b8049 55%, #4a5e30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--bark);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--bark);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  background: #fff;
  outline: none;
}
.form-note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--bark-soft);
  margin-top: 12px;
}

/* ---------- Callout band ---------- */
.callout {
  background: linear-gradient(140deg, var(--gold) 0%, var(--clay-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.callout h2 { color: var(--bark); }
.callout p {
  font-family: var(--font-ui);
  color: var(--bark);
  max-width: 50ch;
  margin: 0 auto 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: #e7dccb;
  padding: 54px 0 0;
}
.site-footer a { color: #f0e6d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  margin-bottom: 14px;
}
.site-footer p {
  font-family: var(--font-ui);
  font-size: 15px;
  color: #cdbfac;
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-family: var(--font-ui); font-size: 15px; }
.footer-crest {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-crest span {
  font-family: var(--font);
  font-size: 22px;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 20px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #b6a892;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__photo { order: -1; min-height: 240px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .greetbar .container { justify-content: center; }
  .brandbar .container { flex-direction: column; text-align: center; }
  .mainnav ul { flex-direction: column; }
  .mainnav a { padding: 13px 18px; border-bottom: 1px solid var(--clay-dark); }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
