/*
Theme Name: HPNA 2026
Theme URI: https://highlandparklafayette.com
Author: Fiat Insight
Description: Standalone theme for the Highland Park Neighborhood Association (Lafayette, IN). Cream + forest-green historic-neighborhood design with a household-based membership system.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hpna
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg:        #f5f1e8;  /* page background (warm cream) */
  --bg-alt:    #efe9da;  /* alt section band */
  --card:      #fffdf7;  /* card surface */
  --card-line: #ece5d4;  /* card border */
  --line:      #e4decd;  /* hairline */

  --forest:       #1f3d2b;  /* deep green, headings */
  --forest-deep:  #16291d;  /* footer */
  --forest-grad1: #234231;
  --forest-grad2: #1a3526;
  --green:        #3f7d4e;  /* primary action green */
  --green-soft:   #6f9c69;
  --gold:         #b5872f;  /* accent */
  --sage:         #bcd8be;  /* light accent text on dark */

  --ink:       #21302a;  /* body text */
  --ink-soft:  #48564c;
  --muted:     #5d6b60;
  --cream-ink: #fbf9f2;  /* text on dark */

  --maxw: 1200px;
  --radius: 5px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Libre Franklin', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* Hide the Google reCAPTCHA (Gravity Forms) badge — it's a 256px fixed element
   that forces horizontal scroll on mobile. reCAPTCHA still works; attribution is
   shown in the footer per Google's terms. */
.grecaptcha-badge { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--green); text-transform: uppercase;
}
.ihero-title { font-size: 44px; } /* interior-page hero titles (responsive below) */
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.serif { font-family: var(--serif); }
.section { padding-top: 80px; padding-bottom: 80px; } /* vertical only — keeps .wrap horizontal padding when combined */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 13px 24px; border-radius: 4px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease; line-height: 1;
}
.btn-green   { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(31,61,43,.25); }
.btn-green:hover { background: #356a42; }
.btn-outline { border-color: var(--green); color: #2c5a39; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-cream   { background: var(--card); color: #26432f; font-weight: 700; }
.btn-ghost   { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.45); color: #fff; }
.btn-lg      { padding: 15px 30px; font-size: 15px; }

/* ==========================================================================
   Utility bar + header
   ========================================================================== */
.utility-bar { background: var(--forest); color: #cdd8cc; font-size: 12.5px; letter-spacing: .04em; }
.utility-bar .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar a { color: #cdd8cc; }
.utility-bar a.strong { color: #fff; font-weight: 600; white-space: nowrap; }
.utility-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.util-account { display: none; } /* Dashboard/Login surface on mobile only (desktop uses the green button) */
.diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); display: inline-block; }

.site-header { background: #f8f5ee; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
/* Keep the sticky header below the WP admin bar for logged-in staff */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.brand .name { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--forest); letter-spacing: .01em; line-height: 1.05; }
.brand .sub { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--green); margin-top: 2px; }
.main-nav { font-size: 14.5px; font-weight: 500; color: #33433a; }
.main-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.main-nav .nav-list > li { margin: 0; position: relative; }
.main-nav .nav-list a { color: #33433a; white-space: nowrap; }
.main-nav .nav-list .current-menu-item > a,
.main-nav .nav-list .current_page_item > a,
.main-nav .nav-list .current-menu-ancestor > a,
.main-nav .nav-list a:hover { color: var(--forest); font-weight: 600; }

/* Dropdown parent caret */
.main-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 5px; }
.main-nav .menu-item-has-children > a::after { content: "\25BE"; font-size: 9px; opacity: .55; transition: transform .15s ease; }
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }

/* Dropdown panel */
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #f8f5ee; border: 1px solid var(--line); border-radius: 6px;
	box-shadow: 0 14px 34px rgba(31,61,43,.14);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease; z-index: 50;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* invisible bridge so the pointer can cross the gap without closing */
.main-nav .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 500; color: #33433a; white-space: nowrap; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: #eef3ea; color: var(--forest); }
/* nested (3rd level), should it exist */
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }

/* Members section — subtle padlock cue */
.main-nav .menu-members > a::before {
	content: "";
	display: inline-block; width: 11px; height: 11px; margin-right: 2px; opacity: .7;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}
.main-nav .sub-menu .menu-members > a::before,
.main-nav .menu-members .sub-menu a::before { content: none; }

.nav-toggle { display: none; }
.nav-member { display: none; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(135deg, var(--forest-grad1), var(--forest-grad2) 70%); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,38,27,.86), rgba(20,38,27,.5) 60%, rgba(20,38,27,.35)); }
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 112px; }
.hero__inner { max-width: 660px; }
.hero .eyebrow { color: var(--gold); margin-bottom: 24px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 66px; line-height: 1.02; color: var(--cream-ink); margin: 0 0 22px; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero p { font-size: 19px; line-height: 1.55; color: #dde6db; margin: 0 0 34px; max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Membership band
   ========================================================================== */
.member-band { background: var(--card); border-bottom: 1px solid var(--card-line); }
.member-band .wrap { padding-top: 34px; padding-bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.member-band__left { display: flex; align-items: center; gap: 20px; }
.member-band__icon { width: 52px; height: 52px; border-radius: 50%; background: #eef3ea; border: 1px solid #d9e4d4; display: flex; align-items: center; justify-content: center; flex: none; }
.member-band__icon .diamond { width: 16px; height: 16px; }
.member-band__icon .band-icon { width: 26px; height: 26px; color: var(--green); }
.member-band h2 { font-size: 19px; font-weight: 700; color: var(--forest); }
.member-band p { font-size: 14.5px; color: var(--muted); margin: 3px 0 0; }
.member-band__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   About
   ========================================================================== */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.08; color: var(--forest); margin: 20px 0; letter-spacing: -.01em; }
.about p { font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 18px; }
.about__media { position: relative; }
.about__photo { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; border: 1px solid #ddd5c2; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__quote { position: absolute; left: -18px; bottom: -18px; background: var(--forest); color: var(--cream-ink); padding: 16px 20px; border-radius: var(--radius); max-width: 220px; box-shadow: 0 10px 26px rgba(31,61,43,.22); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; }

/* ==========================================================================
   Homes gallery (homepage strip + full gallery)
   ========================================================================== */
.homes { background: var(--forest); color: #eef3ea; }
.homes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.homes .eyebrow { color: var(--gold); margin-bottom: 16px; }
.homes h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; color: var(--cream-ink); letter-spacing: -.01em; }
.homes__link { color: var(--sage); font-size: 14.5px; font-weight: 600; border-bottom: 1.5px solid var(--green); padding-bottom: 3px; }
.homes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-card { display: block; background: #2a4d39; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.home-card__img { aspect-ratio: 27/17; overflow: hidden; background: #33543f; }
.home-card__img img { width: 100%; height: 100%; object-fit: cover; }
.home-card__label { padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: #dbe6d8; }
.home-card__meta { padding: 0 14px 12px; font-size: 12px; color: #9fb89f; }

/* ==========================================================================
   What we do
   ========================================================================== */
.programs__head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.programs .eyebrow { justify-content: center; margin-bottom: 16px; }
.programs .eyebrow::before { display: none; }
.programs h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.08; color: var(--forest); letter-spacing: -.01em; }
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 6px; padding: 26px 24px; }
.program-card .diamond { width: 11px; height: 11px; background: var(--green); margin-bottom: 18px; }
.program-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #eef3ea; border: 1px solid #d9e4d4; color: var(--green); margin-bottom: 18px; }
.program-card__icon .prog-icon { width: 22px; height: 22px; }
.program-card__icon .diamond { margin-bottom: 0; }
.program-card h3 { font-size: 18px; font-weight: 700; color: var(--forest); margin-bottom: 7px; }
.program-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.program-card .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }

/* ==========================================================================
   News
   ========================================================================== */
.news { background: var(--bg-alt); border-top: 1px solid var(--line); }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.news h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; color: var(--forest); letter-spacing: -.01em; }
.news__link { color: #2c5a39; font-size: 14.5px; font-weight: 600; border-bottom: 1.5px solid var(--green); padding-bottom: 3px; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.happenings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: start; }

/* Upcoming-events panel (date-led, no image) */
.events-panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.events-panel__head { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.event-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--card-line); }
.event-row:first-of-type { border-top: 0; padding-top: 2px; }
.event-row__date { flex: none; width: 46px; text-align: center; background: #eef3ea; border: 1px solid #d9e4d4; border-radius: 5px; padding: 6px 0; line-height: 1; }
.event-row__date .m { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--green); text-transform: uppercase; }
.event-row__date .d { display: block; font-family: var(--serif); font-size: 20px; color: var(--forest); margin-top: 2px; }
.event-row__title { display: block; font-family: var(--serif); font-size: 17px; color: var(--forest); line-height: 1.2; }
.event-row__when { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.events-panel__empty { color: var(--muted); font-size: 14px; }
.events-panel__all { display: inline-block; margin-top: 14px; color: #2c5a39; font-size: 13.5px; font-weight: 600; }
@media (max-width: 900px) { .happenings { grid-template-columns: 1fr; } }
.news-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; background: #e7e0cf; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 22px 22px 26px; }
.news-card__kind { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 11px; }
.news-card__title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--forest); line-height: 1.18; margin-bottom: 9px; }
.news-card__blurb { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Directory CTA
   ========================================================================== */
.dir-cta { background: var(--green); color: #f3f8f1; }
.dir-cta .wrap { padding-top: 66px; padding-bottom: 66px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.dir-cta h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.12; color: #fff; margin: 0 0 12px; }
.dir-cta p { font-size: 16px; line-height: 1.55; color: #dceadb; margin: 0; max-width: 600px; }
.dir-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-deep); color: #aebcab; }
.site-footer .wrap.cols { padding-top: 62px; padding-bottom: 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand .name { color: #eef3ea; font-size: 18px; }
.site-footer p { font-size: 13.5px; line-height: 1.6; color: #8fa08d; margin: 16px 0 0; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #d7e2d4; text-transform: uppercase; margin-bottom: 16px; }
.footer-col .links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7e8f7c; }
.footer-bottom .links { display: flex; gap: 20px; }

/* ==========================================================================
   Article content (single posts) + WP galleries
   ========================================================================== */
.hpna-content { font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); }
.hpna-content p { margin: 0 0 18px; }
.hpna-content a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.hpna-content h2, .hpna-content h3 { font-family: var(--serif); color: var(--forest); margin: 28px 0 12px; }
.hpna-content img { border-radius: 5px; }
.hpna-content blockquote { border-left: 3px solid var(--green); margin: 20px 0; padding: 4px 0 4px 18px; font-family: var(--serif); font-style: italic; color: var(--forest); }

/* WordPress [gallery] grid */
.hpna-content .gallery { display: grid; gap: 12px; margin: 24px 0; }
.hpna-content .gallery-columns-1 { grid-template-columns: 1fr; }
.hpna-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.hpna-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.hpna-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.hpna-content .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.hpna-content .gallery-item { margin: 0 !important; width: auto !important; }
.hpna-content .gallery-icon { overflow: hidden; border-radius: 6px; border: 1px solid var(--card-line); }
.hpna-content .gallery-icon a { display: block; aspect-ratio: 1; }
.hpna-content .gallery-icon img { width: 100% !important; height: 100% !important; object-fit: cover; border: 0 !important; border-radius: 0; transition: transform .3s ease; cursor: zoom-in; }
.hpna-content .gallery-icon a:hover img { transform: scale(1.06); }
.hpna-content .gallery-caption { font-size: 12.5px; color: var(--muted); padding-top: 6px; }
@media (max-width: 700px) {
	.hpna-content .gallery-columns-3, .hpna-content .gallery-columns-4, .hpna-content .gallery-columns-5 { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox overlay */
.hpna-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(15, 26, 19, .92); }
.hpna-lb.is-open { display: flex; }
.hpna-lb__stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.hpna-lb__img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #1f3d2b; }
.hpna-lb__cap { color: #dde6db; font-size: 14px; margin-top: 14px; text-align: center; max-width: 700px; font-family: var(--serif); font-style: italic; }
.hpna-lb__count { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: #9fb89f; font-size: 13px; letter-spacing: .08em; }
.hpna-lb__close { position: absolute; top: 14px; right: 22px; background: none; border: 0; color: #eef3ea; font-size: 38px; line-height: 1; cursor: pointer; opacity: .8; }
.hpna-lb__close:hover { opacity: 1; }
.hpna-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.hpna-lb__nav:hover { background: var(--green); border-color: var(--green); }
.hpna-lb__prev { left: 3vw; }
.hpna-lb__next { right: 3vw; }
@media (max-width: 600px) { .hpna-lb__nav { width: 40px; height: 40px; font-size: 22px; } }

/* ==========================================================================
   Gravity Forms — match the theme
   ========================================================================== */
.gform_wrapper { font-family: var(--sans); }
.gform_wrapper .gform_required_legend { display: none; }
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
	font-family: var(--sans); font-weight: 700; font-size: 14.5px; color: var(--forest); margin-bottom: 6px;
}
.gform_wrapper .gfield_required { color: var(--gold); font-weight: 600; }
.gform_wrapper .gfield_description,
.gform_wrapper .gsection_description { color: var(--muted); font-size: 13px; }

/* Inputs */
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper input[type=url],
.gform_wrapper input[type=number],
.gform_wrapper input[type=password],
.gform_wrapper select,
.gform_wrapper textarea {
	font-family: var(--sans); font-size: 15.5px; color: var(--ink);
	background: #fff; border: 1px solid #d9e0d2; border-radius: 5px;
	padding: 10px 12px; width: 100%; box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	border-color: var(--green); box-shadow: 0 0 0 1px var(--green); outline: none;
}
.gform_wrapper .ginput_complex label,
.gform_wrapper .gform_fileupload_rules { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* Radios & checkboxes */
.gform_wrapper .gfield-choice-input { accent-color: var(--green); width: 16px; height: 16px; margin-right: 8px; }
.gform_wrapper .gchoice { display: flex; align-items: center; margin: 6px 0; }
.gform_wrapper .gchoice label { font-size: 15px; color: var(--ink); margin: 0; }

/* Product / total */
.gform_wrapper .ginput_product_price,
.gform_wrapper .gfield_total .ginput_total { color: var(--green); font-weight: 700; }

/* Validation */
.gform_wrapper .gfield_error .gfield_label { color: #a13d2d; }
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea { border-color: #c0563f; }
.gform_wrapper .validation_message { color: #a13d2d; font-size: 13px; font-weight: 600; }
.gform_wrapper .gform_validation_errors { background: #fbece7; border: 1px solid #e7c3b6; border-radius: 6px; }

/* Submit button → theme green button */
.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer { padding-top: 8px; }
.gform_wrapper .gform_footer input[type=submit],
.gform_wrapper .gform_button,
.gform_wrapper input[type=submit].gform_button,
.gform_wrapper .gform_page_footer input[type=submit] {
	display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 600;
	background: var(--green); color: #fff; border: 1.5px solid transparent; border-radius: 4px;
	padding: 13px 28px; cursor: pointer; box-shadow: 0 1px 0 rgba(31,61,43,.25);
	transition: background .15s ease; width: auto;
}
.gform_wrapper .gform_footer input[type=submit]:hover,
.gform_wrapper .gform_button:hover { background: #356a42; }

/* Spacing between fields */
.gform_wrapper .gfield { margin-bottom: 20px; }

/* ==========================================================================
   Type-to-search combobox (Manage add/edit household)
   ========================================================================== */
.combo { position: relative; }
.combo-list {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
	background: #fff; border: 1px solid var(--card-line); border-top: 0;
	border-radius: 0 0 6px 6px; max-height: 280px; overflow-y: auto;
	box-shadow: 0 14px 30px rgba(31,61,43,.14); display: none;
}
.combo-list.open { display: block; }
.combo-item { padding: 9px 13px; cursor: pointer; font-size: 14.5px; color: var(--ink); border-top: 1px solid #f1ede2; }
.combo-item:first-child { border-top: 0; }
.combo-item:hover, .combo-item.active { background: #eef3ea; color: var(--forest); }
.combo-item .meta { color: var(--muted); font-size: 12px; margin-left: 8px; }
.combo-item--create { color: var(--green); font-weight: 600; }
.combo-item--empty { color: var(--muted); cursor: default; }

/* ==========================================================================
   Print (directory export)
   ========================================================================== */
@media print {
	.utility-bar, .site-header, .site-footer, #wpadminbar, .no-print { display: none !important; }
	body { background: #fff; }
	.wrap, .wrap.section { padding: 0 !important; max-width: none !important; }
	.print-directory a { color: #000; text-decoration: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .utility-bar .wrap { font-size: 11.5px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .site-header .wrap { gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand .name { font-size: 18px; }
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ihero-title { font-size: 34px; }
  .homes__grid { grid-template-columns: repeat(2, 1fr); }
  .programs__grid, .news__grid { grid-template-columns: 1fr; }
  .site-footer .wrap.cols { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #f8f5ee; padding: 16px 20px; border-bottom: 1px solid var(--line); max-height: 80vh; overflow-y: auto; }
  .main-nav.open .nav-list { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Mobile: submenus are collapsed until the parent is tapped (accordion) */
  .main-nav.open .sub-menu {
    display: none;
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 8px 0 2px 14px;
    border-left: 2px solid var(--card-line); margin-top: 8px; min-width: 0;
  }
  .main-nav.open .menu-item-has-children.open > .sub-menu { display: block; }
  .main-nav.open .sub-menu::before { display: none; }
  .main-nav.open .sub-menu a { padding: 6px 0; }
  .main-nav.open .menu-item-has-children > a::after { content: "\25BE"; transition: transform .15s ease; }
  .main-nav.open .menu-item-has-children.open > a::after { transform: rotate(180deg); }
  .nav-toggle { display: inline-flex; background: none; border: 0; font-size: 24px; color: var(--forest); cursor: pointer; }
  /* Account links live at the foot of the mobile menu (the green header button is hidden on phones) */
  .main-nav.open .nav-member { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .main-nav.open .nav-member a { font-weight: 600; color: var(--forest); }
}
@media (max-width: 560px) {
  .homes__grid { grid-template-columns: 1fr; }
  .site-footer .wrap.cols { grid-template-columns: 1fr; }
  /* Declutter the header: brand + hamburger only (CTA lives in the hero + menu) */
  .site-header > .wrap > .btn-green { display: none; }
  .utility-bar .wrap > span:first-child { display: none !important; }
  .utility-bar .wrap { justify-content: flex-end; }
  .utility-links { gap: 16px; }
  .util-account { display: inline; color: #fff; font-weight: 600; } /* Dashboard/Login now reachable in the top bar */
  .hero h1 { font-size: 33px; }
  .ihero-title { font-size: 28px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .member-band__cta { width: 100%; }
  .member-band__cta .btn { flex: 1; text-align: center; }
}
