/*
Theme Name: Carroll Lutheran Village Chapter Theme
Theme URI: https://carrolllutheranvillage-maccra.store
Author: CARROLL LUTHERAN VILLAGE CHAPTER OF MACCRA
Author URI: https://carrolllutheranvillage-maccra.store
Description: Professional community organization and corporate verification theme for CARROLL LUTHERAN VILLAGE CHAPTER OF MACCRA.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clv-maccra
Tags: community, non-profit, organization, responsive, custom-menu
*/

/* ---------------------------------------------
   1. Design tokens
--------------------------------------------- */
:root {
  --brand: #14532d;
  --brand-dark: #0d3d21;
  --brand-light: #e8f2ec;
  --accent: #b9852f;
  --ink: #1b2420;
  --body: #4c5a53;
  --line: #dfe6e1;
  --surface: #ffffff;
  --surface-alt: #f6f8f7;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 83, 45, .08);
  --wrap: 1160px;
}

/* ---------------------------------------------
   2. Base
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--surface-alt); }
.section__head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem;
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------------------------------------------
   3. Buttons
--------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer; transition: .2s ease;
}
.btn:hover, .btn:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand-dark); }

/* ---------------------------------------------
   4. Header
--------------------------------------------- */
.topbar { background: var(--brand-dark); color: #d9e7de; font-size: .85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 9px 20px; }
.topbar a { color: #fff; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; letter-spacing: .04em; font-size: .95rem;
}
.brand__name { font-weight: 800; color: var(--ink); font-size: 1rem; line-height: 1.2; max-width: 320px; }
.brand__tag { display: block; font-weight: 500; font-size: .75rem; color: var(--body); letter-spacing: .05em; text-transform: uppercase; }
.brand a:hover { text-decoration: none; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: 6px 0; display: inline-block; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }
.main-nav ul ul { display: none; position: absolute; background: #fff; box-shadow: var(--shadow); padding: 10px; border-radius: 10px; flex-direction: column; }
.main-nav li { position: relative; }
.main-nav li:hover > ul { display: flex; }

/* ---------------------------------------------
   5. Hero
--------------------------------------------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #eaf3ed; padding: 88px 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.1rem; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.hero__stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 18px; }
.hero__stat strong { display: block; font-size: 1.5rem; color: #fff; }

/* ---------------------------------------------
   6. Cards / grids
--------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--brand-light);
  color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.about__facts { list-style: none; padding: 0; margin: 20px 0 0; }
.about__facts li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.about__facts strong { color: var(--ink); }

/* ---------------------------------------------
   7. Forms
--------------------------------------------- */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: .88rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .8rem; color: var(--body); }

.contact-details { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-details li { border-left: 3px solid var(--brand); padding-left: 14px; }
.contact-details span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }

/* ---------------------------------------------
   8. Content / entries
--------------------------------------------- */
.page-hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 56px 0; }
.entry { max-width: 820px; margin: 0 auto; }
.entry__meta { font-size: .85rem; color: var(--body); margin-bottom: 18px; }
.entry img { border-radius: var(--radius); margin-bottom: 24px; }
.entry-list { display: grid; gap: 24px; }
.entry-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.legal h2 { margin-top: 2rem; }
.legal { max-width: 860px; margin: 0 auto; }
.pagination { display: flex; gap: 10px; margin-top: 36px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------------------------------------------
   9. Footer
--------------------------------------------- */
.site-footer { background: var(--brand-dark); color: #c8dbcf; padding: 64px 0 0; font-size: .93rem; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #e5f0e9; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.verify {
  margin-top: 42px; border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15); padding: 22px 0; display: grid; gap: 6px;
}
.verify strong { color: #fff; letter-spacing: .03em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 20px 0 28px; font-size: .85rem; }

/* ---------------------------------------------
   10. Responsive
--------------------------------------------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 12px 0; width: 100%; }
  .main-nav ul ul { position: static; display: block; box-shadow: none; padding-left: 14px; }
  .grid--3, .grid--2, .form__row, .hero__stats { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .brand__name { max-width: 210px; font-size: .9rem; }
}
