/*
Theme Name: Kootenai County Farmers' Market
Theme URI: https://kootenaifarmersmarkets.org/
Author: Kootenai County Farmers' Market Association
Description: The Kootenai County Farmers' Market theme, built on BusinessHub (parent theme). Red-and-green market branding from the 2026 proof, the two-market hours bar, vendor directory, Vendor's Corner, recipes, gallery and market maps. Market hours, welcome text, notices and social links are set in Appearance → Customize → Farmers' Market.
Template: businesshub
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kcfm
*/

/* ==========================================================================
   Tokens. The BusinessHub colour variables come from the Customizer; these
   are the market's own.
   ========================================================================== */
:root {
	--kc-red: #c41e2e;
	--kc-red-deep: #9b1522;
	--kc-red-soft: #fdeced;
	--kc-green: #2b7a37;
	--kc-green-bright: #4cb85a;
	--kc-green-soft: #edf6ee;
	--kc-cream: #fbf7ef;
	--kc-ink: #222;
	--kc-muted: #5b5b5b;
	--kc-line: #e6e1d6;
	--kc-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
	--bh-radius: 22px;
	--bh-text: #222;
	--bh-muted: #5b5b5b;
}

body { color: var(--kc-ink); }
h1, h2, h3, h4 { font-family: var(--kc-serif); font-weight: 700; letter-spacing: 0; }

/* ==========================================================================
   Header: logo left; phone / email above a wrapping menu on the right
   ========================================================================== */
.site-header { background: #fff; border-bottom: 1px solid var(--kc-line); }
.site-header .header-inner { min-height: 0; padding-block: 14px; gap: 28px; align-items: center; }
.site-header .custom-logo-link { display: block; line-height: 0; }
.site-header .custom-logo { width: auto; max-height: 150px; height: auto; }
.header-main { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.header-contact { display: flex; gap: 22px; font-size: .9rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.header-contact a { color: var(--kc-green); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.header-contact a:hover { color: var(--kc-red); }
.header-contact .icon { width: 1.05em; height: 1.05em; }
.site-nav .menu { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; column-gap: 2px; }
.site-nav .menu > li > a { text-transform: uppercase; font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: #555; padding: .5rem .6rem; }
.site-header.is-scrolled .custom-logo { max-height: 84px; }
.site-header .custom-logo { transition: max-height .2s; }
.site-nav .menu > li > a:hover { color: var(--kc-red); background: var(--kc-red-soft); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_item > a { color: var(--kc-red) !important; }
.site-nav .sub-menu a { font-size: .95rem; }

@media (min-width: 1101px) {
	.site-nav { width: 100%; }
	.site-nav .menu { max-width: 900px; margin-left: auto; }
	.site-nav .submenu-toggle { margin-left: -6px; }
}
@media (max-width: 1100px) {
	.site-header .custom-logo { max-height: 84px; }
	.header-main { flex: 1; align-items: flex-end; justify-content: center; }
	.header-contact { display: none; }
	.site-nav .menu > li > a { font-size: 1rem; }
	.nav-contact { display: flex !important; }
}
.nav-contact { display: none; flex-direction: column; gap: .4rem; padding: 1rem 0 0; margin-top: .75rem; border-top: 1px solid var(--kc-line); }
.nav-contact a { font-weight: 650; color: var(--kc-green); text-decoration: none; }

/* ==========================================================================
   Market hours bar (front page and the [kcfm_hours] shortcode)
   ========================================================================== */
.kc-hours { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px);
	background: var(--kc-red); color: #fff; border-radius: 34px; padding: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 48px);
	box-shadow: 0 18px 40px -18px rgba(120, 10, 20, .55); text-align: center; text-transform: uppercase; letter-spacing: .03em; }
.kc-hours-market h2 { font-family: var(--bh-font); font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; color: #fff3b0; margin: 0 0 .45rem; }
.kc-hours-market p { margin: 0; line-height: 1.5; font-size: clamp(.92rem, 1.4vw, 1.05rem); }
.kc-hours-market .kc-hours-time { font-weight: 700; }
.kc-hours-cta { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--kc-green-bright); color: #fff;
	font-family: var(--kc-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-transform: none; letter-spacing: 0; text-decoration: none;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); transition: transform .15s, background-color .15s; padding: 14px; }
.kc-hours-cta:hover { transform: scale(1.05); background: var(--kc-green); color: #fff; }
.kc-hours-cta:focus-visible { outline-color: #fff; }
@media (max-width: 760px) {
	.kc-hours { grid-template-columns: 1fr; border-radius: 26px; }
	.kc-hours-cta { order: 3; width: auto; height: auto; border-radius: 999px; padding: .8rem 1.4rem; margin-inline: auto; }
	.kc-hours-market + .kc-hours-market { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 18px; }
}

/* ==========================================================================
   Front page
   ========================================================================== */
.kc-hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 120px); background: var(--kc-cream) center / cover no-repeat; isolation: isolate; }
.kc-hero::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .74); z-index: -1; }
.kc-welcome { text-align: center; max-width: 880px; margin: clamp(40px, 6vw, 72px) auto 0; }
.kc-welcome h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .35em; }
.kc-welcome p { font-family: var(--kc-serif); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.6; color: #2a2a2a; }

.kc-notice { background: #fff; text-align: center; padding: clamp(36px, 5vw, 56px) 0 0; }
.kc-notice p { max-width: 980px; margin: 0 auto; font-family: var(--kc-serif); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.2rem); text-transform: uppercase; line-height: 1.5; letter-spacing: .01em; }
.kc-notice .icon { width: 1.4em; height: 1.4em; color: var(--kc-red); vertical-align: -.3em; margin-right: .3em; }

.kc-tiles { padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.kc-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.kc-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 34px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); }
.kc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.kc-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 60%); }
.kc-tile span { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; font-family: var(--kc-serif); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.35rem); text-transform: uppercase; letter-spacing: .04em; color: #fff6b8; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.kc-tile:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .kc-tile-grid { grid-template-columns: 1fr; } }

.kc-kids { background: var(--kc-cream); border-block: 1px solid var(--kc-line); padding: clamp(48px, 7vw, 88px) 0; }
.kc-section-title { text-align: center; font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; margin-bottom: clamp(28px, 4vw, 48px); }
.kc-kids-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.kc-kids h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; color: var(--kc-red); margin-bottom: 1.1rem; }
.kc-program { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; margin-bottom: 26px; }
.kc-program img { width: 110px; height: auto; border-radius: 10px; background: #fff; }
.kc-program p { margin: 0 0 .5rem; color: #444; }
.kc-partners { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 10px; }
.kc-partners img { height: 64px; width: auto; }
.kc-kids .link-arrow { color: var(--kc-green); }
@media (max-width: 860px) { .kc-kids-grid { grid-template-columns: 1fr; } }

.kc-news { padding: clamp(48px, 7vw, 88px) 0; }
.kc-news .post-grid { margin-top: 0; }
.kc-news-more { text-align: center; margin-top: 32px; }

.kc-follow { text-align: center; padding: clamp(40px, 6vw, 72px) 0; background: #fff; }
.kc-follow h2 { font-family: var(--bh-font); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 1.1rem; }
.kc-social { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.kc-social a { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; color: #fff; transition: transform .15s; }
.kc-social a:hover { transform: translateY(-2px); }
.kc-social svg { width: 34px; height: 34px; }
.kc-social .is-facebook { background: #3b5998; }
.kc-social .is-youtube { background: #e3141f; }
.kc-social .is-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.kc-social-sm a { width: 44px; height: 44px; border-radius: 10px; }
.kc-social-sm svg { width: 24px; height: 24px; }

/* ==========================================================================
   Inner pages: big serif title like the proof, red section headings
   ========================================================================== */
.page-header { background: #fff; color: var(--kc-ink); text-align: center; padding: clamp(36px, 6vw, 64px) 0 clamp(8px, 2vw, 16px); border: 0; }
.page-header::before, .page-header::after { display: none; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.2rem); text-transform: uppercase; color: var(--kc-ink); letter-spacing: .02em; }
.page-intro { color: var(--kc-muted); font-size: 1.1rem; max-width: 720px; margin-inline: auto; }
.section-page { padding-top: clamp(20px, 3vw, 32px); }
.entry-content h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--kc-red); text-transform: uppercase; letter-spacing: .02em; padding-bottom: .3rem; border-bottom: 2px solid var(--kc-red-soft); margin-top: 2.2em; }
.entry-content h3 { font-size: 1.2rem; color: var(--kc-green); margin-top: 1.8em; }
.entry-content a { color: var(--kc-red-deep); }
.entry-content table { font-size: .98rem; }
.entry-content th { background: var(--kc-green); color: #fff; }
.is-full-width .entry-content > :is(p, h2, h3, ul, ol, .kc-callout, .kc-links, .kc-dates, .kc-fees, .kc-cols, .kc-map) { max-width: 980px; margin-inline: auto; }
.is-full-width .entry-content > .kc-lead { max-width: 880px; }

/* Lead paragraph and call-out boxes used on the pages */
.kc-lead { font-family: var(--kc-serif); font-size: 1.2rem; line-height: 1.6; text-align: center; color: #333; }
.kc-callout { background: var(--kc-red-soft); border-left: 5px solid var(--kc-red); border-radius: 12px; padding: 1.1rem 1.4rem; color: #5a0d15; font-weight: 600; }
.kc-callout p:last-child { margin-bottom: 0; }
.kc-callout-green { background: var(--kc-green-soft); border-color: var(--kc-green); color: #173f1d; }
.kc-note { font-size: .92rem; color: var(--kc-muted); }

/* Two-column people / info blocks (About) */
.kc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(28px, 5vw, 64px); }
.kc-cols > div > h2:first-child { margin-top: 1em; }
@media (max-width: 760px) { .kc-cols { grid-template-columns: 1fr; } }
.kc-people { list-style: none; padding: 0 !important; margin: 0; }
.kc-people li { margin: 0 0 1rem !important; line-height: 1.45; }
.kc-people strong { display: block; }
.kc-people a { font-size: .92rem; word-break: break-word; }

/* Photo + text cards (Calendar markets, Vendor's Corner) */
.kc-markets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.kc-market img { border-radius: 30px; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.kc-market h3 { text-align: center; margin: .8rem 0 1.2rem; color: var(--kc-ink); font-size: 1.25rem; }
.kc-market ul { list-style: none; padding: 0 !important; text-align: center; }
.kc-market li { margin-bottom: .9rem !important; line-height: 1.45; }
.kc-market li strong { color: var(--kc-red); }
@media (max-width: 760px) { .kc-markets { grid-template-columns: 1fr; } }

.kc-feature { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(22px, 4vw, 48px); align-items: center; margin: clamp(32px, 5vw, 56px) 0; }
.kc-feature img { border-radius: 30px; width: 100%; height: auto; }
.kc-feature:nth-of-type(even) { grid-template-columns: 3fr 2fr; }
.kc-feature:nth-of-type(even) > figure { order: 2; }
.kc-feature figure { margin: 0; }
.kc-feature h3 { margin-top: 0; }
@media (max-width: 760px) { .kc-feature, .kc-feature:nth-of-type(even) { grid-template-columns: 1fr; } .kc-feature:nth-of-type(even) > figure { order: 0; } }

/* Link lists (Vendor's page, Resources) */
.kc-links { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.kc-links li { margin: 0 !important; }
.kc-links a { display: flex; gap: .75rem; align-items: center; padding: .85rem 1.1rem; border: 1px solid var(--kc-line); border-radius: 14px; background: #fff; text-decoration: none; font-weight: 650; color: var(--kc-ink); transition: border-color .15s, background-color .15s; }
.kc-links a:hover { border-color: var(--kc-red); background: var(--kc-red-soft); }
.kc-links a::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--kc-green-bright); }
.kc-links small { display: block; font-weight: 400; color: var(--kc-muted); }

.kc-dates { list-style: none; padding: 0 !important; border-left: 3px solid var(--kc-green-bright); margin-left: .4rem; }
.kc-dates li { position: relative; padding: 0 0 1rem 1.4rem; margin: 0 !important; }
.kc-dates li::before { content: ""; position: absolute; left: -8px; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--kc-green); }
.kc-dates strong { color: var(--kc-red-deep); }

.kc-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kc-fee { border: 1px solid var(--kc-line); border-radius: 18px; padding: 1.2rem 1.3rem; background: #fff; }
.kc-fee h3 { margin: 0 0 .3rem !important; color: var(--kc-red); font-size: 1.1rem; }
.kc-fee .kc-price { font-family: var(--kc-serif); font-size: 2rem; font-weight: 700; color: var(--kc-ink); line-height: 1.1; }
.kc-fee p { margin: .4rem 0 0; font-size: .95rem; color: var(--kc-muted); }

/* In season table */
.kc-season { width: 100%; border-collapse: collapse; }
.kc-season th, .kc-season td { text-align: center; padding: .55rem .4rem; border-bottom: 1px solid var(--kc-line); }
.kc-season th:first-child, .kc-season td:first-child { text-align: left; font-weight: 600; }
.kc-season td.on { background: var(--kc-green-soft); color: var(--kc-green); font-weight: 700; }
.kc-season td.on::before { content: "●"; }
.kc-season tbody tr:hover td { background-color: #fffaf0; }
.kc-season tbody tr:hover td.on { background: #d9eedb; }
.kc-season-wrap { overflow-x: auto; }
@media (max-width: 600px) { .kc-season { font-size: .85rem; } .kc-season th { font-size: .7rem; } }

/* Vendor directory */
.kc-dir-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.kc-dir-search { flex: 1 1 260px; max-width: 420px; }
.kc-dir-search input { width: 100%; padding: .75rem 1rem; border: 2px solid var(--kc-line); border-radius: 999px; font: inherit; }
.kc-dir-search input:focus { border-color: var(--kc-green); outline: 0; }
.kc-dir-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.kc-dir-letters a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--kc-cream); text-decoration: none; font-weight: 700; color: var(--kc-red-deep); }
.kc-dir-letters a:hover { background: var(--kc-red); color: #fff; }
.kc-dir { columns: 3 240px; column-gap: 40px; }
.kc-dir-group { break-inside: avoid; margin-bottom: 1.4rem; }
.kc-dir-group h2 { font-size: 1.4rem !important; margin: 0 0 .3rem !important; border: 0 !important; padding: 0 !important; color: var(--kc-red) !important; }
.kc-dir-group ul { list-style: none; padding: 0 !important; margin: 0; }
.kc-dir-group li { margin: 0 0 .25rem !important; font-family: var(--kc-serif); font-weight: 700; }
.kc-dir-group li a { color: var(--kc-ink); }
.kc-dir-group li .kc-dir-type { display: block; font-family: var(--bh-font); font-weight: 400; font-size: .8rem; color: var(--kc-muted); }
.kc-dir-empty { display: none; }

/* Galleries */
.kc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.kc-gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.kc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kc-gallery a:hover img { transform: scale(1.04); }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-gallery img { border-radius: 14px; }

.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-bottom: 2rem; }
.entry-content .gallery-item { margin: 0; width: auto !important; }
.entry-content .gallery-item a { display: block; border-radius: 14px; overflow: hidden; }
.entry-content .gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .3s; display: block; }
.entry-content .gallery a:hover img { transform: scale(1.04); }
.entry-content .gallery-caption { font-size: .85rem; color: var(--kc-muted); }

.kc-map { border-radius: 22px; overflow: hidden; border: 1px solid var(--kc-line); }
.kc-map iframe { display: block; width: 100%; height: 440px; border: 0; }
.kc-map-img img { border-radius: 16px; border: 1px solid var(--kc-line); }

/* Recipes */
.kc-recipes .post-card-title { font-size: 1.15rem; }

/* ==========================================================================
   Footer: one bordered panel (menus left and right, logo in the middle)
   ========================================================================== */
.site-footer.kc-footer { background: #fff; color: var(--kc-ink); padding: clamp(28px, 4vw, 48px) 0 0; }
.kc-footer-panel { border: 1px solid #cfcfcf; border-radius: 6px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 22px clamp(18px, 3vw, 36px); }
.kc-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kc-footer-menu a { color: #555; text-decoration: none; text-transform: uppercase; font-size: .88rem; letter-spacing: .05em; }
.kc-footer-menu a:hover { color: var(--kc-red); }
.kc-footer-left .kc-footer-menu { justify-items: start; }
.kc-footer-center { text-align: center; }
.kc-footer-center .custom-logo { max-height: 110px; width: auto; }
.kc-footer-center p { margin: .5rem 0 0; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.kc-footer-center address { font-style: normal; font-size: .9rem; color: var(--kc-muted); margin-top: .4rem; }
.kc-footer-right { display: flex; gap: 22px; justify-content: flex-end; align-items: center; }
.kc-footer-right .kc-social { flex-direction: column; }
.kc-footer-right .kc-footer-menu { justify-items: end; text-align: right; }
.kc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 0 24px; font-size: .85rem; color: var(--kc-muted); }
.kc-footer-bottom a { color: var(--kc-muted); }
.kc-footer-bottom p { margin: 0; }
@media (max-width: 860px) {
	.kc-footer-panel { grid-template-columns: 1fr; text-align: center; }
	.kc-footer-left .kc-footer-menu, .kc-footer-right .kc-footer-menu { justify-items: center; text-align: center; }
	.kc-footer-center { order: -1; }
	.kc-footer-right { flex-direction: column-reverse; }
	.kc-footer-right .kc-social { flex-direction: row; }
}

/* Print */
@media print { .site-header, .site-footer, .kc-hours-cta { display: none; } }
