/* ==========================================================================
   NAMECLUST — Child theme styles
   Palette: #EC0E9C (Signature Magenta) · #1A1A1E (Ink) · #FAFAFA (Soft White)
            #D8D8DC (Dove Grey) · #FFFFFF (Pure White)
   Type: "Fraunces" (display/headings) · "Inter" (body/UI)
   ========================================================================== */

:root {
	--nc-magenta: #EC0E9C;
	--nc-magenta-deep: #C20C81;
	--nc-ink: #1A1A1E;
	--nc-soft-white: #FAFAFA;
	--nc-dove-grey: #D8D8DC;
	--nc-white: #FFFFFF;
	--nc-text-muted: #5A5A60;

	--nc-font-display: "Fraunces", Georgia, serif;
	--nc-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Safety net: hide any duplicate hero/tray instances beyond the first.
   The PHP guard in functions.php should prevent this entirely, but this
   CSS rule protects against edge cases (e.g. a caching layer serving an
   older uncached fragment, or a builder re-firing content hooks). */
.nc-hero ~ .nc-hero,
.nc-tool-tray ~ .nc-tool-tray {
	display: none !important;
}

/* ---------- Base ---------- */

body {
	font-family: var(--nc-font-body);
	color: var(--nc-ink);
	background: var(--nc-soft-white);
}

h1, h2, h3, h4,
.nc-font-display {
	font-family: var(--nc-font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--nc-ink);
}

a {
	color: var(--nc-magenta);
}

a:hover {
	color: var(--nc-magenta-deep);
}

/* GeneratePress top bar / nav: keep it quiet so the hero carries the color */
.main-navigation {
	background: var(--nc-white);
	border-bottom: 1px solid var(--nc-dove-grey);
}

.main-navigation .main-nav ul li a {
	font-family: var(--nc-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--nc-ink);
}

.main-navigation .main-nav ul li a:hover {
	color: var(--nc-magenta);
}

.site-logo img,
.site-logo {
	max-height: 48px;
}

/* ============================================================
   HOMEPAGE HERO
   The signature element: a single diagonal slash (echoing the
   logo's mark) carrying the daily verse. Bold color spent in one
   place only — everything around it stays quiet.
   ============================================================ */

.nc-hero {
	position: relative;
	overflow: hidden;
	background: var(--nc-ink);
	padding: 5rem 1.5rem 6rem;
	text-align: center;
}

.nc-hero-slash {
	position: absolute;
	top: -10%;
	left: 58%;
	width: 3px;
	height: 140%;
	background: var(--nc-magenta);
	transform: rotate(18deg);
	opacity: 0.9;
}

.nc-hero-slash::before {
	content: "";
	position: absolute;
	top: 0;
	left: -340px;
	width: 3px;
	height: 100%;
	background: rgba(236, 14, 156, 0.35);
}

.nc-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin: 0 auto;
}

.nc-hero-eyebrow {
	font-family: var(--nc-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--nc-magenta);
	margin-bottom: 0.75rem;
}

.nc-hero-title {
	font-size: 2.1rem;
	color: var(--nc-white);
	margin: 0 0 2rem 0;
}

/* The hero already provides "Carried in on the wind / Today's Verse" framing,
   so the plugin's own internal card chrome (label, border, background) would
   just repeat that context. Strip it down to the verse text itself. */
.nc-hero-verse .ncft-daily-verse {
	background: transparent;
	border: none;
	border-left: none;
	padding: 0;
	backdrop-filter: none;
}

.nc-hero-verse .ncft-daily-verse-label {
	display: none;
}

.nc-hero-verse .ncft-daily-verse-text {
	color: var(--nc-white);
	font-size: 1.5rem;
}

.nc-hero-verse .ncft-daily-verse-ref {
	color: var(--nc-dove-grey);
}

.nc-hero-verse .ncft-daily-verse-link {
	color: var(--nc-white);
	font-weight: 700;
}

.nc-hero-verse .ncft-daily-verse-link:hover {
	color: var(--nc-magenta);
}

/* ============================================================
   TOOL TRAY
   The three plugin features made visible as primary navigation,
   not buried in a menu.
   ============================================================ */

.nc-tool-tray {
	background: var(--nc-white);
	padding: 0 1.5rem 3.5rem;
}

.nc-tool-tray-inner {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	transform: translateY(-2.5rem);
}

.nc-tool-card {
	background: var(--nc-white);
	border: 1px solid var(--nc-dove-grey);
	padding: 2.25rem 1.5rem 2.5rem;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nc-tool-card:not(:last-child) {
	border-right: none;
}

.nc-tool-card:hover {
	border-color: var(--nc-magenta);
	transform: translateY(-3px);
	position: relative;
	z-index: 1;
}

.nc-tool-icon {
	display: block;
	font-size: 1.1rem;
	color: var(--nc-magenta);
	margin-bottom: 0.85rem;
}

.nc-tool-name {
	display: block;
	font-family: var(--nc-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--nc-ink);
	margin-bottom: 0.4rem;
}

.nc-tool-desc {
	display: block;
	font-size: 0.88rem;
	color: var(--nc-text-muted);
}

/* ============================================================
   BLOG / ARTICLE GRID
   Applies on the homepage (legacy "latest posts" setups) and on the
   dedicated Blog/posts page once a static homepage is in use.
   GeneratePress adds `blog` and `archive` body classes on the posts
   page automatically, so we target those alongside .nc-homepage.
   ============================================================ */

body.nc-homepage .site-content,
body.blog .site-content,
body.archive .site-content {
	padding-top: 0;
	max-width: 1040px;
	margin: 2rem auto 0;
}

.nc-homepage article.post,
.nc-homepage .inside-article,
.blog article.post,
.blog .inside-article,
.archive article.post,
.archive .inside-article {
	border: 1px solid var(--nc-dove-grey);
	background: var(--nc-white);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.nc-homepage .entry-title,
.blog .entry-title,
.archive .entry-title {
	font-family: var(--nc-font-display);
	font-size: 1.3rem;
}

.nc-homepage .entry-title a,
.blog .entry-title a,
.archive .entry-title a {
	color: var(--nc-ink);
}

.nc-homepage .entry-title a:hover,
.blog .entry-title a:hover,
.archive .entry-title a:hover {
	color: var(--nc-magenta);
}

/* ============================================================
   GENERAL CONTENT PAGES (Bible reader / Prayer requests / Articles)
   ============================================================ */

.entry-content h1,
.entry-content h2,
.entry-content h3 {
	font-family: var(--nc-font-display);
}

.entry-content a {
	color: var(--nc-magenta);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--nc-magenta-deep);
}

/* Buttons sitewide (forms, plugin CTAs) take the brand magenta */
.button,
button[type="submit"],
input[type="submit"] {
	background: var(--nc-magenta);
	border-color: var(--nc-magenta);
	color: var(--nc-white);
	font-family: var(--nc-font-body);
	font-weight: 600;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--nc-magenta-deep);
	border-color: var(--nc-magenta-deep);
}

/* Footer */
.site-footer,
#footer-widgets {
	background: var(--nc-ink);
	color: var(--nc-dove-grey);
}

.site-footer a {
	color: var(--nc-white);
}

.site-footer a:hover {
	color: var(--nc-magenta);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
	.nc-hero {
		padding: 3.5rem 1.25rem 5rem;
	}

	.nc-hero-title {
		font-size: 1.6rem;
	}

	.nc-tool-tray-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
		transform: translateY(-1.5rem);
	}

	.nc-tool-card {
		border: 1px solid var(--nc-dove-grey) !important;
	}

	.nc-hero-slash {
		left: 50%;
	}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.nc-tool-card {
		transition: none;
	}
}
