/* The Homestead at Carrollton - site styles. Plain CSS, no frameworks. */
:root {
  --green: #1d5b2c;
  --green-dark: #143f1f;
  --green-soft: #e8f0e6;
  --gold: #b8892b;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1f2421;
  --muted: #5b625d;
  --line: #e1ddd2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 4px 14px rgba(20, 40, 25, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; color: var(--green-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-dark); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav a.btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--green); color: #fff !important; text-decoration: none; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--green) !important; box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.light { background: #fff; color: var(--green-dark) !important; }
.btn.light:hover { background: var(--green-soft); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--green-dark) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 15, .78), rgba(10, 30, 15, .35) 60%, rgba(10, 30, 15, .15)); }
.hero .wrap { position: relative; padding-top: clamp(70px, 12vw, 140px); padding-bottom: clamp(60px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 16em; }
.hero p { font-size: 1.15rem; max-width: 34em; color: #f1f3ee; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-hero { background: var(--green-dark) center / cover no-repeat; position: relative; color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 15, .6); }
.page-hero .wrap { position: relative; padding-top: 56px; padding-bottom: 48px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .4em 0 0; color: #eef1ea; max-width: 40em; }
.page-title { padding-top: 40px; }

/* ---------- layout pieces ---------- */
main { display: block; }
.section { padding: 44px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .quick a { padding: 14px; } .quick span { display: none; } .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card .body { padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card img.cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card p:last-child { margin-bottom: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.notice { background: var(--green-soft); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1em; }
.notice p:last-child { margin: 0; }

/* quick links */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: -40px; position: relative; z-index: 2; }
.quick a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.quick a:hover { border-color: var(--green); }
.quick strong { display: block; color: var(--green-dark); font-family: var(--serif); font-size: 1.15rem; font-weight: normal; }
.quick span { font-size: .9rem; color: var(--muted); }

/* announcements + events */
.ann { margin: 0; padding: 0; list-style: none; }
.ann li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ann li:last-child { border-bottom: 0; }
.ann li.h { font-family: var(--serif); color: var(--green-dark); font-size: 1.1rem; border-bottom: 0; padding-bottom: 0; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.events li:last-child { border-bottom: 0; }
.date-badge { text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); line-height: 1.1; padding: 6px 0; }
.date-badge b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--green); margin: -6px 0 4px; padding: 3px 0; border-radius: 7px 7px 0 0; }
.date-badge span { font-family: var(--serif); font-size: 1.5rem; color: var(--green-dark); }
.events .t { font-weight: 600; }
.events .w { color: var(--muted); font-size: .92rem; }
.month-head { font-family: var(--serif); color: var(--green-dark); font-size: 1.25rem; margin: 26px 0 4px; }
.meeting { display: flex; gap: 16px; align-items: center; }
.meeting .date-badge { min-width: 70px; }

/* documents */
.doc-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 18px; }
.doc-tools input { flex: 1 1 280px; padding: 11px 14px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc-nav a { font-size: .88rem; text-decoration: none; padding: 5px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.doc-nav a:hover { border-color: var(--green); color: var(--green); }
.doc-section { margin-bottom: 26px; }
.doc-section h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.35rem; }
.doc-section h2 a { font-family: var(--sans); font-size: .85rem; }
.doc-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { flex: 1; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-list .sub { display: block; font-size: .8rem; color: var(--muted); }
.kind { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.doc-list .d { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .doc-list .d { display: none; } }

/* FAQ */
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--green); }
details.faq[open] summary::after { content: "\2013"; }
details.faq .a { padding: 0 18px 14px; }
.faq-group { margin-top: 28px; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.person .role { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.person .name { font-family: var(--serif); font-size: 1.2rem; color: var(--green-dark); }

/* gallery + groups */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.group { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; font-size: .95rem; }
.group img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 8px; }
a.group { text-decoration: none; color: var(--ink); }
a.group:hover { border-color: var(--green); }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ads img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.figure { margin: 0 0 1em; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dark); color: #dfe8dc; margin-top: 40px; font-size: .95rem; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; font-size: .82rem; color: #b9c7b5; }

.loading { color: var(--muted); font-style: italic; }
@media print { .site-header, .site-footer, .nav-toggle { display: none; } body { background: #fff; } }
