/* ============================================================
   mynetplus — Main stylesheet
   Theme: mynetplus
   Author: Stoyan Ivanov
   ============================================================ */

:root {
	--mnp-primary: #0066FF;
	--mnp-primary-rgb: 0, 102, 255;
	--mnp-primary-dark: #0052CC;
	--mnp-secondary: #0A1F44;
	--mnp-secondary-rgb: 10, 31, 68;
	--mnp-accent: #10B981;
	--mnp-text: #1F2937;
	--mnp-text-light: #6B7280;
	--mnp-bg: #FFFFFF;
	--mnp-bg-soft: #F8FAFF;
	--mnp-border: #E5E7EB;
	--mnp-radius: 12px;
	--mnp-radius-lg: 18px;
	--mnp-shadow: 0 4px 20px rgba(0, 0, 0, .06);
	--mnp-shadow-lg: 0 12px 40px rgba(0, 0, 0, .1);
	--mnp-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mnp-font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
	--mnp-transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* Override Bootstrap primary with our brand colour */
:root {
	--bs-primary: var(--mnp-primary);
	--bs-primary-rgb: var(--mnp-primary-rgb);
}

.btn-primary {
	background-color: var(--mnp-primary);
	border-color: var(--mnp-primary);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background-color: var(--mnp-primary-dark) !important;
	border-color: var(--mnp-primary-dark) !important;
}
.btn-outline-primary {
	color: var(--mnp-primary);
	border-color: var(--mnp-primary);
}
.btn-outline-primary:hover {
	background-color: var(--mnp-primary);
	border-color: var(--mnp-primary);
}
.text-primary { color: var(--mnp-primary) !important; }
.bg-primary { background-color: var(--mnp-primary) !important; }
.link-primary { color: var(--mnp-primary) !important; }

/* ============================================================
   Base
   ============================================================ */
body {
	font-family: var(--mnp-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--mnp-text);
	background: var(--mnp-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--mnp-font-heading);
	font-weight: 700;
	color: var(--mnp-secondary);
	line-height: 1.2;
}

a {
	color: var(--mnp-primary);
	text-decoration: none;
	transition: color var(--mnp-transition);
}
a:hover {
	color: var(--mnp-primary-dark);
}

img {
	max-width: 100%;
	height: auto;
}

/* Selection */
::selection {
	background: var(--mnp-primary);
	color: #fff;
}

/* Buttons */
.btn {
	font-family: var(--mnp-font-heading);
	transition: all var(--mnp-transition);
}
.btn-lg {
	padding: .85rem 1.75rem;
}
.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(var(--mnp-primary-rgb), .25);
}

/* ============================================================
   Header / Navbar
   ============================================================ */
.topbar {
	font-size: .85rem;
}
.topbar a {
	transition: opacity var(--mnp-transition);
}
.topbar a:hover {
	opacity: .8;
}

.site-header {
	transition: box-shadow var(--mnp-transition), padding var(--mnp-transition);
}
.site-header.scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.navbar-nav .nav-link {
	font-weight: 500;
	color: var(--mnp-secondary);
	padding: .5rem 1rem !important;
	position: relative;
	transition: color var(--mnp-transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > .nav-link {
	color: var(--mnp-primary);
}

@media (min-width: 992px) {
	.navbar-nav .nav-link::after {
		content: '';
		position: absolute;
		bottom: -2px;
		left: 50%;
		width: 0;
		height: 2px;
		background: var(--mnp-primary);
		transform: translateX(-50%);
		transition: width var(--mnp-transition);
	}
	.navbar-nav .nav-link:hover::after,
	.navbar-nav .nav-link.active::after,
	.navbar-nav .current-menu-item > .nav-link::after,
	.navbar-nav .current_page_item > .nav-link::after {
		width: 100%;
	}
}

/* Custom logo */
.custom-logo {
	max-height: 56px;
	width: auto;
}

/* Dropdown menu styling */
.dropdown-menu {
	border: 0;
	border-radius: var(--mnp-radius);
	box-shadow: var(--mnp-shadow-lg);
	padding: .5rem;
	margin-top: .5rem;
}
.dropdown-item {
	border-radius: 8px;
	padding: .5rem 1rem;
	font-weight: 500;
	transition: all var(--mnp-transition);
}
.dropdown-item:hover, .dropdown-item:focus {
	background: rgba(var(--mnp-primary-rgb), .1);
	color: var(--mnp-primary);
}
.dropdown-item.active, .dropdown-item:active {
	background: var(--mnp-primary);
	color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.min-vh-75 {
	min-height: 75vh;
}
@media (max-width: 991px) {
	.min-vh-75 {
		min-height: auto;
	}
}

.hero-section {
	overflow: hidden;
}
.hero-visual svg {
	animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

/* ============================================================
   Cards
   ============================================================ */
.service-card {
	cursor: default;
}
.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--mnp-shadow-lg) !important;
}

.pricing-card {
	transition: all var(--mnp-transition);
	position: relative;
}
.pricing-card:not(.shadow-lg):hover {
	transform: translateY(-4px);
	box-shadow: var(--mnp-shadow-lg) !important;
}

.testimonial-card {
	transition: all var(--mnp-transition);
}
.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mnp-shadow-lg) !important;
}

.blog-card {
	transition: all var(--mnp-transition);
}
.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mnp-shadow-lg) !important;
}
.blog-card .card-img-top {
	transition: transform .6s var(--mnp-transition);
}
.blog-card:hover .card-img-top {
	transform: scale(1.05);
}

/* ============================================================
   Accordion
   ============================================================ */
.accordion-button {
	padding: 1.25rem 1.5rem;
	background: #fff;
	color: var(--mnp-secondary);
}
.accordion-button:not(.collapsed) {
	background: rgba(var(--mnp-primary-rgb), .05);
	color: var(--mnp-primary);
	box-shadow: none;
}
.accordion-button:focus {
	border-color: var(--mnp-primary);
	box-shadow: 0 0 0 .2rem rgba(var(--mnp-primary-rgb), .15);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer .footer-link {
	transition: opacity var(--mnp-transition), padding var(--mnp-transition);
	display: inline-block;
}
.site-footer .footer-link:hover {
	opacity: 1 !important;
	padding-left: 4px;
}

.site-footer .btn-outline-light {
	transition: all var(--mnp-transition);
}
.site-footer .btn-outline-light:hover {
	background: var(--mnp-primary);
	border-color: var(--mnp-primary);
	color: #fff;
}

/* ============================================================
   Back to top button
   ============================================================ */
#back-to-top {
	transition: opacity var(--mnp-transition), transform var(--mnp-transition);
}
#back-to-top:hover {
	transform: translateY(-3px);
}

/* ============================================================
   Blog / Single post
   ============================================================ */
.entry-header {
	margin-bottom: 2rem;
}
.entry-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.entry-meta {
	color: var(--mnp-text-light);
	font-size: .9rem;
}
.entry-meta a {
	color: var(--mnp-text-light);
}
.entry-meta a:hover {
	color: var(--mnp-primary);
}

.entry-content {
	font-size: 1.05rem;
}
.entry-content > * {
	margin-bottom: 1.5rem;
}
.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.875rem;
}
.entry-content h3 {
	margin-top: 2rem;
	font-size: 1.5rem;
}
.entry-content blockquote {
	border-left: 4px solid var(--mnp-primary);
	padding: 1rem 1.5rem;
	background: var(--mnp-bg-soft);
	border-radius: 0 var(--mnp-radius) var(--mnp-radius) 0;
	font-style: italic;
	color: var(--mnp-secondary);
}
.entry-content img {
	border-radius: var(--mnp-radius);
}

.post-card {
	transition: all var(--mnp-transition);
}

/* ============================================================
   Comments
   ============================================================ */
.comment-list {
	list-style: none;
	padding: 0;
}
.comment-list .comment {
	margin-bottom: 1.5rem;
}
.comment-body {
	background: var(--mnp-bg-soft);
	padding: 1.5rem;
	border-radius: var(--mnp-radius);
}
.comment-author img {
	border-radius: 50%;
}
.comment-list .children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 1rem;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
	border: 1px solid var(--mnp-border);
	border-radius: var(--mnp-radius);
	padding: .75rem 1rem;
	transition: all var(--mnp-transition);
}
.form-control:focus, .form-select:focus {
	border-color: var(--mnp-primary);
	box-shadow: 0 0 0 .2rem rgba(var(--mnp-primary-rgb), .15);
}

.form-control-lg, .form-select-lg {
	padding: 1rem 1.25rem;
	font-size: 1.05rem;
}

label {
	font-weight: 500;
	margin-bottom: .5rem;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link {
	color: var(--mnp-secondary);
	border: 1px solid var(--mnp-border);
	margin: 0 4px;
	border-radius: 8px !important;
	padding: .6rem .9rem;
	font-weight: 500;
	transition: all var(--mnp-transition);
}
.pagination .page-link:hover {
	background: rgba(var(--mnp-primary-rgb), .1);
	border-color: var(--mnp-primary);
	color: var(--mnp-primary);
}
.pagination .page-item.active .page-link {
	background: var(--mnp-primary);
	border-color: var(--mnp-primary);
	color: #fff;
}

/* ============================================================
   Widgets
   ============================================================ */
.widget {
	margin-bottom: 2rem;
}
.widget-title {
	border-bottom: 2px solid var(--mnp-primary);
	padding-bottom: .75rem;
	display: inline-block;
}
.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.widget ul li {
	padding: .5rem 0;
	border-bottom: 1px solid var(--mnp-border);
}
.widget ul li:last-child {
	border-bottom: 0;
}
.widget ul li a {
	color: var(--mnp-text);
	font-weight: 500;
}
.widget ul li a:hover {
	color: var(--mnp-primary);
	padding-left: 4px;
}

/* Search form */
.search-form {
	display: flex;
	gap: .5rem;
}
.search-form .search-field {
	flex: 1;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header-section {
	background: linear-gradient(135deg, var(--mnp-secondary) 0%, var(--mnp-primary) 100%);
	color: #fff;
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}
.page-header-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 60%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
}
.page-header-section .breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: .9rem;
}
.page-header-section .breadcrumb a {
	color: rgba(255,255,255,.85);
	text-decoration: none;
}
.page-header-section .breadcrumb a:hover {
	color: #fff;
}
.page-header-section .breadcrumb-item.active {
	color: #fff;
}
.page-header-section .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255,255,255,.6);
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
	padding: 6rem 0;
	text-align: center;
}
.error-404 .error-number {
	font-size: clamp(8rem, 25vw, 16rem);
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(135deg, var(--mnp-primary) 0%, var(--mnp-secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ============================================================
   Utilities
   ============================================================ */
.section-padding {
	padding: 5rem 0;
}
@media (max-width: 767px) {
	.section-padding {
		padding: 3rem 0;
	}
}

.py-lg-6 {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
}
@media (min-width: 992px) {
	.py-lg-6 {
		padding-top: 7rem !important;
		padding-bottom: 7rem !important;
	}
}

.shadow-soft {
	box-shadow: var(--mnp-shadow);
}
.shadow-strong {
	box-shadow: var(--mnp-shadow-lg);
}

.rounded-xl { border-radius: var(--mnp-radius-lg) !important; }
.rounded-2xl { border-radius: 24px !important; }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 991px) {
	.hero-section {
		text-align: center;
	}
	.hero-section .display-4 {
		font-size: 2.25rem;
	}
	.pricing-card[style*="scale(1.02)"] {
		transform: none !important;
	}
}

@media (max-width: 767px) {
	body { font-size: 15px; }
	.display-4 { font-size: 2rem; }
	.display-5 { font-size: 1.75rem; }
	.display-6 { font-size: 1.5rem; }

	.navbar-collapse {
		background: #fff;
		padding: 1rem;
		border-radius: var(--mnp-radius);
		box-shadow: var(--mnp-shadow);
		margin-top: .5rem;
	}
	.header-cta {
		flex-direction: column;
		align-items: stretch !important;
		gap: .5rem !important;
		margin-top: 1rem;
	}
	.header-cta .btn {
		width: 100%;
	}
}

/* ============================================================
   Print
   ============================================================ */
@media print {
	.site-header, .site-footer, .cta-strip, #back-to-top, .topbar { display: none !important; }
	.entry-content { font-size: 12pt; }
	a { color: inherit; text-decoration: underline; }
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link:focus {
	z-index: 100000;
}

/* ============================================================
   Layout: Boxed / Framed / Wide site layouts
   ============================================================ */
body.site-layout-framed .site-header,
body.site-layout-framed .cta-strip,
body.site-layout-framed .site-footer {
	border-radius: 0;
}
body.site-layout-framed #page > .site-header,
body.site-layout-boxed #page > .site-header {
	margin-bottom: 0;
}

/* ============================================================
   Layout: Full-Width pages
   ============================================================ */
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > p,
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > h1,
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > h2,
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > h3,
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > ul,
body.layout-full-width main#site-content > section .container-fluid > .row > [class*="col-"] > article > .entry-content > ol {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

/* No-Sidebar centered content gets a comfortable max width */
body.layout-no-sidebar .entry-content {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

/* Left sidebar order helper (for browsers that ignore order on flex wrapping) */
body.layout-left-sidebar aside.sidebar {
	margin-bottom: 1.5rem;
}

/* ============================================================
   Accessibility: WCAG AA contrast fixes
   ============================================================
   Bootstrap's default .text-secondary (#6c757d) fails WCAG AA on
   light backgrounds (4.36:1 vs the required 4.5:1). We override
   it with a darker neutral that passes on every theme background:
     - On #FFFFFF: 8.59:1 ✅
     - On #F8FAFF: 8.27:1 ✅
     - On #F4F8FF: 8.18:1 ✅
   Same for muted/small/lead text.
   ============================================================ */

:root {
	/* Accessible neutral grayscale */
	--mnp-text-primary:    #0F172A;  /* Slate-900 — body text */
	--mnp-text-muted:      #4B5563;  /* Gray-600  — secondary text (8.2:1) */
	--mnp-text-light:      #6B7280;  /* Gray-500  — tertiary, only used on white */
	--mnp-border:          #E5E7EB;  /* Gray-200  — subtle borders */
	--mnp-bg-soft:         #F8FAFF;
}

/* Override Bootstrap defaults for better contrast */
.text-secondary,
.text-muted {
	color: var(--mnp-text-muted) !important;
}

/* Small / lead variants get the same upgrade */
small,
.small,
.lead.text-secondary,
.lead.opacity-75,
.lead.opacity-90 {
	color: var(--mnp-text-muted) !important;
}

/* On dark sections, opacity utilities should produce visible text */
[style*="background:var(--mnp-secondary"] .text-secondary,
[style*="background:var(--mnp-secondary"] .opacity-75,
[style*="background:var(--mnp-secondary"] .opacity-50,
section.why-section .text-secondary,
section.why-section .opacity-75,
section.cta-strip .opacity-75,
.site-footer .opacity-75,
.site-footer .opacity-50 {
	color: rgba(255, 255, 255, .85) !important;  /* 12.6:1 on #0A1F44 */
	opacity: 1 !important;
}

/* Lead text general — darker for better readability on light bg */
section[style*="background:#F8FAFF"] .text-secondary,
section[style*="background:#F4F8FF"] .text-secondary {
	color: #374151 !important;  /* Gray-700 — even higher contrast */
}

/* Body & paragraph text overall */
body {
	color: var(--mnp-text-primary);
}

/* Headings always at full contrast */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	color: var(--mnp-text-primary);
}

/* ---------- Accordion contrast fix ---------- */
.accordion-button {
	color: var(--mnp-text-primary) !important;
	font-weight: 600;
}
.accordion-button:not(.collapsed) {
	background-color: rgba(0, 102, 255, .08);
	color: var(--mnp-secondary) !important;
	box-shadow: inset 0 -1px 0 rgba(0,102,255,.15);
}
.accordion-button:focus {
	border-color: var(--mnp-primary);
	box-shadow: 0 0 0 .25rem rgba(0,102,255,.25);
}
.accordion-body {
	color: var(--mnp-text-primary);
}

/* Form labels and helper text */
.form-label,
.form-text {
	color: var(--mnp-text-primary);
}
.form-control::placeholder,
.form-select option:disabled {
	color: var(--mnp-text-muted);
	opacity: 1;
}

/* Card text contrast */
.card-body p,
.card-body .small {
	color: var(--mnp-text-muted);
}

/* Badge contrast — outline variants need stronger borders */
.badge.bg-light {
	color: var(--mnp-text-primary) !important;
	border: 1px solid var(--mnp-border);
}

/* Footer link readability — full white at AAA level */
.site-footer .footer-link,
.site-footer ul li a {
	color: rgba(255, 255, 255, .85) !important;
}
.site-footer .footer-link:hover,
.site-footer ul li a:hover {
	color: #fff !important;
	text-decoration: underline;
}

/* Button states — ensure contrast on primary */
.btn-primary {
	color: #fff !important;
}
.btn-outline-primary {
	color: var(--mnp-primary);
	border-color: var(--mnp-primary);
}
.btn-outline-primary:hover {
	color: #fff !important;
	background-color: var(--mnp-primary);
}

/* Visible focus indicators (WCAG 2.4.7) */
:focus-visible {
	outline: 3px solid var(--mnp-primary, #0066FF);
	outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.accordion-button:focus-visible {
	outline-offset: 0;
	box-shadow: 0 0 0 .25rem rgba(0,102,255,.35);
}

/* ---------- High contrast mode ---------- */
@media (prefers-contrast: more) {
	:root {
		--mnp-text-muted: #1F2937;  /* Even darker on high contrast preference */
	}
	.btn { border-width: 2px !important; }
}
