/*
Theme Name: Columbine Chorale
Theme URI: https://columbinechorale.org
Author: Sapphire Blue AI LLC
Author URI: https://sapphireblue.dev
Description: Lightweight custom classic theme for the Columbine Chorale (Denver choir). A modern, standalone replacement for the Twenty Twelve child theme — PHP 8.4 clean and PHP 9 ready, no external font requests, WooCommerce and The Events Calendar friendly.
Version: 1.0.2
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: columbine-chorale
Tags: two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Fonts — self-hosted (Playfair Display headings, Lato body)
   ============================================================ */
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/lato-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/lato-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/lato-3.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/lato-4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/lato-5.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/lato-6.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/playfairdisplay-3.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/playfairdisplay-4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/playfairdisplay-7.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/playfairdisplay-8.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
	--cc-maxw: 1080px;
	--cc-bg: #ffffff;
	--cc-text: #333333;
	--cc-link: #428bca;
	--cc-link-hover: #227aa8;
	--cc-nav-bg: #222222;
	--cc-nav-active: #3399cc;
	--cc-nav-hover: #227aa8;
	--cc-footer-bg: #eeeeee;
	--cc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--cc-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--cc-sans);
	color: var(--cc-text);
	background: var(--cc-bg);
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--cc-link); }
a:hover { color: var(--cc-link-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--cc-serif); font-weight: 700; line-height: 1.25; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: static !important;
	width: auto; height: auto; margin: 0;
	clip: auto; white-space: normal;
}

/* ============================================================
   Layout
   ============================================================ */
#page { max-width: var(--cc-maxw); margin: 0 auto; }
#main.wrapper {
	max-width: var(--cc-maxw);
	margin: 0 auto;
	padding: 20px 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}
#primary { flex: 1 1 62%; min-width: 0; }
#secondary { flex: 1 1 250px; max-width: 300px; }
.site-content--full { flex-basis: 100%; max-width: none; }

@media (max-width: 768px) {
	#primary, #secondary { flex-basis: 100%; max-width: none; }
}

/* ============================================================
   Masthead: logo, social, title, nav
   ============================================================ */
#masthead {
	position: relative;
	padding: 12px 0 0;
	text-align: center;
}
#page-logo, .custom-logo-link {
	position: absolute;
	top: 20px; left: 10px;
	width: 104px;
	z-index: 1000;
	display: block;
}
#page-logo img, .custom-logo { width: 104px; height: auto; display: block; }
body.admin-bar #page-logo, body.admin-bar .custom-logo-link { top: 52px; }

#social-icons { position: absolute; top: 24px; right: 10px; z-index: 1000; }
body.admin-bar #social-icons { top: 56px; }
#social-icons a { color: var(--cc-link-hover); font-size: 24px; margin-left: 12px; text-decoration: none; }
#social-icons a:hover { color: var(--cc-nav-active); }

.heading-title { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 0; line-height: 1.3; }
.heading-title a { color: var(--cc-text); text-decoration: none; }
.heading-motto { font-family: var(--cc-serif); font-size: 1rem; margin: 0.2em 0 0; }
.heading-motto a { text-decoration: none; }

/* Navigation */
#site-navigation { background: var(--cc-nav-bg); margin-top: 16px; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; color: #fff; text-decoration: none; }
.menu-toggle { display: none; }

@media (max-width: 599px) {
	.menu-toggle {
		display: block; width: 100%;
		background: var(--cc-nav-bg); color: #fff;
		border: 0; padding: 10px; font-size: 16px; cursor: pointer;
	}
	.nav-menu { display: none; }
	#site-navigation.toggled .nav-menu { display: block; }
	.nav-menu a { padding: 10px 15px; border-top: 1px solid #333; }
	.nav-menu .sub-menu { padding-left: 15px; }
	.nav-menu li.current-menu-item > a { background: var(--cc-nav-hover); color: #fff; }
}

@media (min-width: 600px) {
	.nav-menu {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: center;
		max-width: var(--cc-maxw);
		margin: 0 auto;
	}
	.nav-menu li { position: relative; }
	.nav-menu > li > a { padding: 10px 12px; font-size: 16px; }
	.nav-menu > li > a:hover,
	.nav-menu li.current-menu-item > a,
	.nav-menu li.current-menu-parent > a,
	.nav-menu li.current-page-parent > a,
	.nav-menu li.current-page-ancestor > a { background: var(--cc-nav-hover); color: #fff; }
	.nav-menu .sub-menu {
		position: absolute; left: 0; top: 100%;
		display: none; min-width: 190px;
		background: #fff; box-shadow: 0 0 5px #888;
		z-index: 1500; text-align: left;
	}
	.nav-menu li:hover > .sub-menu,
	.nav-menu li.focus > .sub-menu { display: block; }
	.nav-menu .sub-menu a { color: #000; padding: 8px 12px; }
	.nav-menu .sub-menu a:hover,
	.nav-menu .sub-menu li.current-menu-item > a { background: var(--cc-nav-hover); color: #fff; }
	.menu-item-has-children > a::after { content: " \25BE"; }
}
@media (min-width: 780px) {
	.nav-menu > li > a { font-size: 18px; padding: 10px 15px; }
}

/* ============================================================
   Hero (homepage)
   ============================================================ */
.hero { position: relative; width: 100%; line-height: 0; }
.hero__image { width: 100%; height: auto; display: block; }
.hero--has-overlay .hero__overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, var(--hero-scrim, 0.4));
	line-height: normal;
}
.hero__inner { max-width: 800px; padding: 20px; text-align: center; color: #fff; }
.hero__heading {
	color: #fff; margin: 0 0 0.3em;
	font-size: clamp(1.8rem, 5vw, 3rem);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero__subheading {
	margin: 0 0 1em;
	font-size: clamp(1rem, 2.4vw, 1.4rem);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero__button {
	display: inline-block;
	background: var(--cc-nav-active); color: #fff;
	padding: 0.6em 1.5em; border-radius: 4px;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	text-decoration: none;
}
.hero__button:hover { background: var(--cc-link-hover); color: #fff; }

/* ============================================================
   Content
   ============================================================ */
.entry-header { margin-bottom: 0.5em; }
.entry-title { margin: 0; }
.entry-title a { text-decoration: none; }
.entry-meta { font-size: 0.85rem; color: #777; }
.entry-content { margin: 1em 0; }
.entry-content a { color: var(--cc-link); }
.post-thumbnail { display: block; margin: 0 0 1em; }
article.page, article.post { padding-bottom: 20px; margin-bottom: 20px; }
.posts-navigation, .post-navigation, .comment-navigation { margin: 25px 0; }

/* Alignment (classic editor) */
img.alignleft, .alignleft { float: left; margin: 0 18px 10px 0; }
img.alignright, .alignright { float: right; margin: 0 0 10px 18px; }
img.aligncenter, .aligncenter { display: block; margin: 0 auto 10px; }
img.alignleft, img.alignright { box-shadow: none; }

/* ============================================================
   Sidebar
   ============================================================ */
#secondary .widget { margin-bottom: 25px; }
#secondary a { color: var(--cc-link); }
.widget-title { font-size: 1.1rem; margin: 0 0 0.5em; }

/* ============================================================
   In-content helpers (authored via classic editor — preserved)
   ============================================================ */
.leftcol, .rightcol { width: 100%; }
@media (min-width: 680px) {
	.leftcol { float: left; width: 47%; }
	.rightcol { float: right; width: 47%; }
}
#sponsorcontainer { clear: both; margin: 0; }
.sponsorbox {
	display: inline-block; width: 40%; float: left;
	margin: 2%; padding: 1% 2%;
	border: 1px solid #aaa; box-shadow: 1px 1px 2px #999;
}
.sponsorbox a { color: var(--cc-link); text-decoration: none; }
.sponsorbox a.sponsorlink { clear: both; display: block; font-size: 125%; }
.sponsorbox img { float: left; max-width: 33%; padding: 5px; margin-right: 10px; }
.member-buttons { list-style: none; padding: 0; }
.member-buttons li { display: inline-block; margin: 10px 5px 10px 0; }
.member-buttons li a {
	padding: 6px 12px; background: #444; color: #fff;
	border: 1px solid var(--cc-link); border-radius: 3px; text-decoration: none;
}
.member-buttons li a:hover { background: #111; }
.socialbox img { max-width: 64px; }

/* Light-touch plugin cooperation */
.tribe-events-event-image { float: left; }
.tribe-events-event-image img { box-shadow: none; }

/* Galleries ([gallery] shortcode) */
.gallery { display: grid; gap: 10px; margin: 0 0 1.5em; }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }
.gallery-item { margin: 0; text-align: center; }
.gallery-icon { margin: 0; }
.gallery-item img { width: 100%; height: auto; border: 1px solid #ddd; }
.gallery-caption { display: block; font-size: 0.85rem; color: #777; padding: 4px 0; }
@media (max-width: 600px) {
	.gallery[class*="gallery-columns-"] { grid-template-columns: repeat(2, 1fr); }
}

/* WooCommerce — light theme-matched touches (Woo ships its own base CSS) */
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button,
.woocommerce ul.products li.product .button, .woocommerce .button.alt,
.woocommerce-mini-cart__buttons a.button {
	background: var(--cc-nav-active); color: #fff; border-radius: 3px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce .button.alt:hover,
.woocommerce-mini-cart__buttons a.button:hover { background: var(--cc-link-hover); }
.woocommerce span.price, .woocommerce div.product p.price { color: var(--cc-text); font-weight: 700; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--cc-nav-active); }
.woocommerce .star-rating span::before { color: var(--cc-nav-active); }

/* ============================================================
   Search form
   ============================================================ */
.search-form { display: flex; gap: 6px; align-items: stretch; max-width: 100%; }
.search-field {
	flex: 1 1 auto; min-width: 0;
	padding: 8px 12px; line-height: 1.6;
	border: 1px solid #ccc; border-radius: 3px;
	font-size: 1rem; font-family: inherit;
}
.search-field:focus { border-color: var(--cc-nav-active); outline: none; }
.search-submit {
	padding: 8px 16px; line-height: 1.6;
	background: var(--cc-nav-active); color: #fff;
	border: 0; border-radius: 3px; cursor: pointer; font-size: 1rem;
}
.search-submit:hover { background: var(--cc-nav-hover); }

/* ============================================================
   Footer
   ============================================================ */
#colophon {
	background: var(--cc-footer-bg);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
	margin-top: 30px;
}
#footer-container { max-width: var(--cc-maxw); margin: 0 auto; padding: 20px 18px; }
.footer-widgets { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-col { flex: 1 1 45%; min-width: 0; }
.footer-col--right { text-align: right; }
#colophon a { color: var(--cc-link-hover); text-decoration: none; }
#colophon a:hover { text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 18px; }
.footer-bottom .widget { margin-bottom: 12px; }
.site-copyright {
	text-align: center;
	margin-top: 15px; padding-top: 15px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
}
@media (max-width: 599px) {
	.footer-col, .footer-col--right { flex-basis: 100%; text-align: left; }
}
