/*
Theme Name: Nexus
Theme URI: https://example.com/nexus
Author: Your Name
Author URI: https://example.com
Description: Multi-Purpose WordPress Theme with frontend Builder, Theme Options, community, e-commerce, and rental/booking. Build anything.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexus
Tags: custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, blog, e-commerce, portfolio, custom-colors, one-page, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, flexible-header, rtl-language-support

Nexus - Multi-Purpose WordPress Theme.
*/

/* ==========================================================================
   Color system – all editable from Theme Options
   ========================================================================== */

:root {
	/* Primary & accent */
	--nexus-primary: #2563eb;
	--nexus-primary-hover: #1d4ed8;
	--nexus-secondary: #64748b;
	--nexus-accent: #0ea5e9;

	/* Header */
	--nexus-header-bg: #ffffff;
	--nexus-header-text: #0f172a;
	--nexus-header-link: #334155;
	--nexus-header-link-hover: #2563eb;
	--nexus-header-border: rgba(0, 0, 0, 0.08);

	/* Body & content */
	--nexus-body-bg: #ffffff;
	--nexus-body-text: #334155;
	--nexus-body-text-muted: #64748b;
	--nexus-link: #2563eb;
	--nexus-link-hover: #1d4ed8;

	/* Footer */
	--nexus-footer-bg: #0f172a;
	--nexus-footer-text: #e2e8f0;
	--nexus-footer-link: #94a3b8;
	--nexus-footer-link-hover: #ffffff;
	--nexus-footer-border: #334155;

	/* Buttons & CTAs */
	--nexus-button-bg: #2563eb;
	--nexus-button-text: #ffffff;
	--nexus-button-hover-bg: #1d4ed8;
	--nexus-button-hover-text: #ffffff;

	/* Borders & surfaces */
	--nexus-border: #e2e8f0;
	--nexus-border-light: #f1f5f9;
	--nexus-surface: #f8fafc;

	/* Sidebar & widgets */
	--nexus-sidebar-bg: #f8fafc;
	--nexus-widget-title: #0f172a;

	/* Comments & forms */
	--nexus-input-border: #cbd5e1;
	--nexus-input-focus: #2563eb;

	/* Pagination */
	--nexus-pagination-bg: #f1f5f9;
	--nexus-pagination-current: #2563eb;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--nexus-body-text);
	background-color: var(--nexus-body-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--nexus-link);
	text-decoration: none;
}

a:hover {
	color: var(--nexus-link-hover);
	text-decoration: underline;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--nexus-primary);
	color: var(--nexus-button-text);
	padding: 8px 16px;
	z-index: 100000;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.content-sidebar-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 2rem 20px;
	min-height: 40vh;
}

@media (min-width: 782px) {
	.content-sidebar-wrap {
		grid-template-columns: 1fr 300px;
	}
}

.content-sidebar-wrap .site-main {
	padding: 0;
}

.site-main {
	padding: 2rem 0;
	min-height: 40vh;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: var(--nexus-header-bg);
	box-shadow: 0 1px 3px var(--nexus-header-border);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	gap: 1rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.site-title a {
	color: var(--nexus-header-text);
	text-decoration: none;
}

.site-title a:hover {
	text-decoration: none;
	opacity: 0.85;
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0;
	color: var(--nexus-header-link);
	font-weight: 500;
}

.main-navigation a:hover {
	color: var(--nexus-header-link-hover);
	text-decoration: none;
}

/* Mobile menu toggle - visible on small screens via CSS */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--nexus-border);
	padding: 0.5rem 1rem;
	cursor: pointer;
	font-size: 1rem;
	color: var(--nexus-header-text);
}

@media (max-width: 781px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--nexus-header-bg);
		flex-direction: column;
		padding: 1rem;
		box-shadow: 0 4px 6px var(--nexus-header-border);
	}

	.main-navigation.toggled ul {
		display: flex;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--nexus-footer-bg);
	color: var(--nexus-footer-text);
	padding: 2rem 0;
	margin-top: 3rem;
}

.site-footer a {
	color: var(--nexus-footer-link);
}

.site-footer a:hover {
	color: var(--nexus-footer-link-hover);
	text-decoration: none;
}

.footer-inner {
	display: grid;
	gap: 2rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}

.site-info {
	padding-top: 1rem;
	border-top: 1px solid var(--nexus-footer-border);
	font-size: 0.875rem;
	color: var(--nexus-footer-link);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.posts-navigation,
.post-navigation {
	margin: 2rem 0;
	padding: 1rem 0;
	border-top: 1px solid var(--nexus-border);
}

.pagination .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pagination .page-numbers,
.posts-navigation a,
.post-navigation a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--nexus-pagination-bg);
	color: var(--nexus-body-text);
	border-radius: 4px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-navigation a:hover,
.post-navigation a:hover {
	background: var(--nexus-primary);
	color: var(--nexus-button-text);
	text-decoration: none;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--nexus-border);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--nexus-border-light);
}

.comment-author {
	font-weight: 600;
}

.comment-meta {
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
	margin-bottom: 0.5rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem;
	margin-bottom: 1rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: 4px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--nexus-input-focus);
	outline: none;
}

.comment-form textarea {
	min-height: 120px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
	padding: 0.5rem 0;
	font-size: 0.875rem;
	border-top: 1px solid var(--nexus-border-light);
}

.breadcrumb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.breadcrumb-item {
	display: inline;
}

.breadcrumb-item .current {
	color: var(--nexus-body-text-muted);
}

.breadcrumb-sep {
	color: var(--nexus-body-text-muted);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	display: block;
	padding: 1rem;
	background: var(--nexus-body-bg);
	z-index: 100000;
}

/* Buttons – use .button or .nexus-btn for CTAs */
.nexus-btn,
.button,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: var(--nexus-button-bg);
	color: var(--nexus-button-text);
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.nexus-btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--nexus-button-hover-bg);
	color: var(--nexus-button-hover-text);
	text-decoration: none;
}

.alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Homepage sections (Hero, Stats, Features, Trust, CTA)
   ========================================================================== */

.nexus-front-sections {
	padding: 0;
	min-height: 0;
}

.nexus-section {
	padding: 3rem 20px;
}

.nexus-section-inner {
	margin: 0 auto;
}

.nexus-section-title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	color: var(--nexus-header-text);
	text-align: center;
}

.nexus-section-intro {
	text-align: center;
	color: var(--nexus-body-text-muted);
	max-width: 600px;
	margin: 0 auto 2rem;
}

/* Hero */
.nexus-hero {
	background: var(--nexus-surface);
	padding: 4rem 20px;
	text-align: center;
}

.nexus-hero-headline {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: var(--nexus-header-text);
	line-height: 1.2;
}

.nexus-hero-subheadline {
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	color: var(--nexus-body-text-muted);
}

.nexus-hero-cta {
	margin: 0;
}

/* Stats */
.nexus-stats {
	background: var(--nexus-body-bg);
	border-bottom: 1px solid var(--nexus-border-light);
}

.nexus-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 2rem;
	text-align: center;
}

.nexus-stat-number {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--nexus-primary);
	margin-bottom: 0.25rem;
}

.nexus-stat-label {
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
}

/* Features */
.nexus-features {
	background: var(--nexus-body-bg);
}

.nexus-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.nexus-feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	background: var(--nexus-surface);
	border-radius: 6px;
	border: 1px solid var(--nexus-border-light);
}

.nexus-feature-icon {
	color: var(--nexus-primary);
	font-size: 0.875rem;
}

.nexus-feature-label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--nexus-body-text);
}

/* Trust */
.nexus-trust {
	background: var(--nexus-surface);
}

.nexus-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-top: 1.5rem;
}

.nexus-trust-item {
	text-align: center;
	padding: 1rem;
}

.nexus-trust-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--nexus-header-text);
}

.nexus-trust-text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
}

/* CTA */
.nexus-cta {
	background: var(--nexus-primary);
	color: var(--nexus-button-text);
	text-align: center;
}

.nexus-cta .nexus-section-title,
.nexus-cta .nexus-cta-text {
	color: inherit;
}

.nexus-cta .nexus-cta-text {
	margin: 0 0 1rem;
	opacity: 0.95;
}

.nexus-cta .nexus-btn {
	background: var(--nexus-button-text);
	color: var(--nexus-primary);
}

.nexus-cta .nexus-btn:hover {
	background: var(--nexus-surface);
	color: var(--nexus-header-text);
}

/* ==========================================================================
   Search overlay
   ========================================================================== */

.nexus-search-toggle {
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--nexus-header-link);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nexus-search-toggle:hover {
	color: var(--nexus-header-link-hover);
}

.nexus-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 4rem 20px 0;
}

.nexus-search-overlay.is-open {
	display: flex;
}

.nexus-search-overlay-inner {
	background: var(--nexus-body-bg);
	width: 100%;
	max-width: 560px;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nexus-search-overlay .search-form {
	display: flex;
	gap: 0.5rem;
}

.nexus-search-overlay .search-field {
	flex: 1;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: 4px;
}

.nexus-search-overlay .search-submit {
	padding: 0.75rem 1.25rem;
}

.nexus-search-overlay-close {
	display: block;
	margin-top: 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
	cursor: pointer;
}

.nexus-search-overlay-close:hover {
	color: var(--nexus-link);
}
