/*
Theme Name:   MORAL Kadence
Description:  Child theme of Kadence for moral.bg. Shared design base for the sister site soszr.bg — only the tokens below, the Kadence palette and the logo differ.
Template:     kadence
Version:      2.1.0
Text Domain:  moral-kadence
*/

/* =========================================================
   Design tokens (soszr overrides only this block)
   ========================================================= */
:root {
	--site-accent: #0672CB;        /* Dell-style blue */
	--site-accent-dark: #0A4F8F;
	--site-accent-soft: #E6F0FA;
	--site-navy: #0E1B2C;
	--site-ink: #0E1B2C;
	--site-text: #45556B;
	--site-muted: #7A889A;
	--site-line: #E8DFCF;
	--site-bg: #F1E9DA;
	--site-card: #FBF8F2;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(60, 45, 20, .05), 0 4px 16px rgba(60, 45, 20, .07);
	--shadow-hover: 0 2px 4px rgba(14, 27, 44, .06), 0 12px 32px rgba(14, 27, 44, .12);
}

body { -webkit-font-smoothing: antialiased; }
a { transition: color .15s ease; }

/* =========================================================
   Header
   ========================================================= */
/* Top bar – navy */
.site-top-header-wrap .site-header-row-container-inner { background: var(--site-navy); }
.site-top-header-wrap .header-html { font-size: .8rem; color: #B8C4D3; }
.site-top-header-wrap .header-html a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.site-top-header-wrap .header-html a:hover { border-bottom-color: #fff; }
.site-top-header-wrap .header-social-wrap .social-button { background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; }
.site-top-header-wrap .header-social-wrap .social-button:hover { background: var(--site-accent); color: #fff; }

/* Main row – logo + tagline */
.site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid var(--site-line); }
#main-header .site-branding .site-title { display: none; } /* name is in the logo */
#main-header .site-branding .site-description {
	margin: .2rem 0 0; padding-left: 1rem; border-left: 2px solid var(--site-line);
	font-size: .92rem; font-weight: 500; letter-spacing: .01em; color: var(--site-text);
}
.search-toggle-open { color: var(--site-ink); border-radius: 50%; }
.search-toggle-open:hover { color: var(--site-accent); }

/* Primary nav – blue bar */
.site-bottom-header-wrap .site-header-row-container-inner { background: var(--site-accent); }
.site-bottom-header-wrap .header-navigation .menu > li > a {
	font-weight: 600; text-transform: uppercase; font-size: .78rem; letter-spacing: .03em;
}
.site-bottom-header-wrap .header-navigation .menu > li.menu-sister-site > a { background: rgba(0,0,0,.18); border-radius: 6px; }
/* Dropdowns */
.header-navigation .header-menu-container ul ul.sub-menu {
	background: var(--site-card); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-hover); border-top: 3px solid var(--site-accent-dark); overflow: hidden;
}
.header-navigation .header-menu-container ul ul li.menu-item > a { color: var(--site-ink); font-size: .88rem; border-bottom: 1px solid var(--site-line); }
.header-navigation .header-menu-container ul ul li.menu-item > a:hover { color: var(--site-accent); background: var(--site-accent-soft); }

/* =========================================================
   Content
   ========================================================= */
.content-bg, .entry.single-entry, .entry.loop-entry { background: var(--site-card); }
.entry.single-entry, .entry.loop-entry { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.entry-content a { color: var(--site-accent); }
.entry-content a:hover { color: var(--site-accent-dark); }
.entry-content img { border-radius: 8px; }
.entry-content iframe { max-width: 100%; border-radius: 8px; }
.entry-taxonomies a, .entry-meta .category-links a { color: var(--site-accent); }

/* Archive titles */
.archive-title, .page-title h1 { color: var(--site-ink); }
.loop-entry .entry-title a { color: var(--site-ink); }
.loop-entry .entry-title a:hover { color: var(--site-accent); }
.loop-entry .post-thumbnail { border-radius: var(--radius) var(--radius) 0 0; }

/* Legacy content helpers carried over from the old theme */
.uppercase { text-transform: none; }
.bkg-post-img { background-repeat: no-repeat; background-position: center; background-size: contain; }

/* =========================================================
   Front page sections & query cards
   ========================================================= */
.moral-section { margin-top: 3.25rem; }
.moral-section-title {
	display: flex; align-items: center; gap: .65rem;
	font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.25rem;
}
.moral-section-title::before { content: ""; width: 6px; height: 1.25em; border-radius: 3px; background: var(--site-accent); }
.moral-section-title a { color: var(--site-ink); text-decoration: none; }
.moral-section-title a:hover { color: var(--site-accent); }

.wp-block-query .wp-block-post-template { gap: 1.5rem; }
.wp-block-query .wp-block-post {
	background: var(--site-card); border-radius: var(--radius); box-shadow: var(--shadow);
	overflow: hidden; display: flex; flex-direction: column; padding-bottom: 1.1rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-query .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.wp-block-query .wp-block-post > *:not(.wp-block-post-featured-image) { padding-left: 1.15rem; padding-right: 1.15rem; }
.wp-block-query .wp-block-post-featured-image { margin: 0 0 .9rem; overflow: hidden; }
.wp-block-query .wp-block-post-featured-image img { transition: transform .4s ease; }
.wp-block-query .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.wp-block-query .wp-block-post-title { margin: .35rem 0 .4rem; line-height: 1.35; font-size: 1.05rem; }
.wp-block-query .wp-block-post-title a { text-decoration: none; color: var(--site-ink); }
.wp-block-query .wp-block-post-title a:hover { color: var(--site-accent); }
.moral-card-cat a {
	display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--site-accent); background: var(--site-accent-soft); padding: .2em .6em; border-radius: 999px; text-decoration: none; margin-bottom: .15rem;
}
.moral-card-cat .wp-block-post-terms__separator { display: none; }
.moral-card-cat a + a, .moral-card-cat .wp-block-post-terms__separator + a { display: none; } /* show only the first category */
.moral-card-date { font-size: .78rem; color: var(--site-muted); }
.wp-block-query .wp-block-post-excerpt { font-size: .9rem; color: var(--site-text); margin-top: .35rem; }
.wp-block-query .wp-block-post-excerpt__more-text { display: none; }

.moral-more { text-align: right; font-weight: 600; font-size: .9rem; margin-top: 1rem; }
.moral-more a {
	color: var(--site-accent); text-decoration: none; padding: .45em 1em; border: 1px solid var(--site-accent); border-radius: 999px; transition: all .15s ease;
}
.moral-more a:hover { background: var(--site-accent); color: #fff; }

/* Clubs */
.moral-clubs .wp-block-columns { gap: 1.25rem; }
.moral-club-card {
	background: var(--site-card); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 1.25rem 1.25rem 1rem; border-top: 4px solid var(--site-accent); display: flex; flex-direction: column;
}
.moral-club-card h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.moral-club-card h3 a { color: var(--site-ink); text-decoration: none; }
.moral-club-card h3 a:hover { color: var(--site-accent); }
.moral-club-card .moral-more { margin-top: auto; text-align: left; }
.moral-club-card .wp-block-query .wp-block-post { box-shadow: none; background: transparent; border-radius: 0; border-top: 1px solid var(--site-line); padding: .5rem 0; }
.moral-club-card .wp-block-query .wp-block-post:hover { transform: none; }
.moral-club-card .wp-block-query .wp-block-post > * { padding-left: 0 !important; padding-right: 0 !important; }
.moral-club-card .wp-block-post-featured-image, .moral-club-card .moral-card-cat { display: none; }
.moral-club-card .wp-block-post-title { font-size: .92rem; }

/* Sister-site banner */
.sister-banner {
	margin-top: 3.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius);
	background: linear-gradient(120deg, var(--site-navy) 0%, var(--site-accent-dark) 100%); color: #DCE6F2;
}
.sister-banner a { color: #fff; font-weight: 700; }

/* Sister-site shortcode button */
.sister-site-link a { display: inline-block; padding: .3em .9em; border: 1px solid var(--site-accent); border-radius: 999px; color: var(--site-accent); font-weight: 600; text-decoration: none; }
.sister-site-link a:hover { background: var(--site-accent); color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner { background: var(--site-navy); color: #B8C4D3; }
.site-footer .site-middle-footer-wrap a { color: #E3EAF2; text-decoration: none; }
.site-footer .site-middle-footer-wrap a:hover { color: #fff; text-decoration: underline; }
.site-footer .site-middle-footer-wrap h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer .site-middle-footer-wrap h3::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--site-accent); margin-top: .5rem; }
.site-footer .site-middle-footer-wrap ul { list-style: none; padding: 0; }
.site-footer .site-middle-footer-wrap li { padding: .2rem 0; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { background: #09131F; color: #8796A8; font-size: .8rem; }
.site-footer .site-bottom-footer-wrap a { color: #DCE6F2; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 781px) {
	.wp-block-query .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
	.moral-section { margin-top: 2.25rem; }
}

/* Front page: let the cream site background show between the cards */
.home .content-bg,
.home .entry.single-entry { background: transparent; box-shadow: none; border-radius: 0; }
