/*
 * custom.css — Project-specific styles and Bootstrap overrides.
 *
 * This file is loaded after bootstrap.min.css and style.css so any rule
 * here will take precedence. Add component-level customisations here
 * rather than editing Bootstrap or style.css directly.
 */

/* =============================================================================
   Bootstrap Variable Overrides
   These custom properties mirror Bootstrap's own tokens and override them.
   ============================================================================= */

:root {
	--bs-primary:            #0d6efd;
	--bs-primary-rgb:        13, 110, 253;
	--bs-body-font-family:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--bs-body-font-size:     1rem;
	--bs-body-line-height:   1.65;
	--bs-border-radius:      0.375rem;
	--bs-border-radius-lg:   0.5rem;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* =============================================================================
   Cards
   ============================================================================= */

.card {
	border-radius: var(--bs-border-radius-lg);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
	transform: translateY(-2px);
}

/* =============================================================================
   Navigation
   ============================================================================= */

/* Ensure active nav items are visible on dark backgrounds */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:focus {
	color: #fff;
}

/* =============================================================================
   WordPress Core Element Styles
   WordPress adds its own classes; these keep them looking clean with Bootstrap.
   ============================================================================= */

/* Alignments */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery-item { flex: 1 1 calc(33.333% - 0.5rem); }
.gallery-item img { width: 100%; height: auto; border-radius: var(--bs-border-radius); }

/* Captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--bs-secondary-color, #6c757d); text-align: center; margin-top: 0.25rem; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field  { flex: 1; }
.search-form .search-submit { white-space: nowrap; }

/* Post navigation */
.post-navigation .nav-links { display: flex; justify-content: space-between; }
.post-navigation .nav-subtitle { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bs-secondary-color, #6c757d); }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body  { border: 1px solid var(--bs-border-color, #dee2e6); border-radius: var(--bs-border-radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.comment-author .fn { font-weight: 600; }
.comment-metadata { font-size: 0.8125rem; color: var(--bs-secondary-color, #6c757d); }

/* =============================================================================
   Utility Helpers
   ============================================================================= */

.section-title {
	position: relative;
	display: inline-block;
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 3rem;
	height: 3px;
	background-color: var(--bs-primary);
	border-radius: 2px;
}
