/**
 * Nexora — Mobile-first SaaS theme (bcz-inspired layout)
 */

:root {
	--blue: #2563eb;
	--blue-dark: #1d4ed8;
	--blue-light: #eff6ff;
	--navy: #0f172a;
	--text: #334155;
	--text-light: #64748b;
	--white: #ffffff;
	--bg: #ffffff;
	--bg-alt: #f8fafc;
	--line: #e2e8f0;
	--overlay: rgba(15, 23, 42, 0.72);
	--font: 'Inter', system-ui, sans-serif;
	--radius: 8px;
	--radius-lg: 12px;
	--shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	--container: min(100% - 2rem, 1180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
.container { width: var(--container); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.75rem 1.5rem; font-family: var(--font); font-size: 0.875rem; font-weight: 600;
	border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-light); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header--front { box-shadow: none; }
.header-inner {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 0.5rem;
	padding: 0.75rem 1rem; max-width: 1180px; margin-inline: auto;
}
.site-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.site-title a { color: inherit; }
.site-title a:hover { color: var(--blue); }
.header-cta { display: none; font-size: 0.8rem; padding: 0.55rem 1rem; white-space: nowrap; }
.main-navigation { display: none; grid-column: 1 / -1; padding: 0.5rem 0 0.75rem; border-top: 1px solid var(--line); }
.main-navigation.is-open { display: block; }
.primary-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu a { display: block; padding: 0.65rem 0; font-size: 0.9rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.primary-menu a:hover { color: var(--blue); }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin-inline: auto; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero-section { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-badge { display: inline-block; padding: 0.35rem 0.85rem; background: var(--white); color: var(--blue); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 50px; border: 1px solid var(--line); margin-bottom: 1rem; }
.hero-title { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 1.5rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Sections */
.section { padding: 3rem 0; }
.section:nth-child(even) { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--text-light); margin: 0; }
.section-head .view-all { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--blue); }

/* Features */
.features-intro { padding-bottom: 1rem; }
.features-grid { display: grid; gap: 1.25rem; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature-card-image { aspect-ratio: 16/10; overflow: hidden; }
.feature-card-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-body { padding: 1.25rem; }
.feature-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.feature-card-body h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feature-card-body p { margin: 0; font-size: 0.92rem; color: var(--text-light); }

/* Solutions */
.solutions-grid { display: grid; gap: 1.25rem; }
.solution-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.solution-image { aspect-ratio: 3/2; overflow: hidden; }
.solution-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.solution-card:hover .solution-image img { transform: scale(1.03); }
.solution-body { padding: 1.25rem; }
.solution-body h3 { font-size: 1.1rem; }
.solution-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.75rem; }
.solution-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); }

/* Highlights */
.highlights-grid { display: grid; gap: 2rem; align-items: center; }
.highlights-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.highlights-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--text-light); }
.highlights-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.highlights-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Stats */
.stats-section { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
.stat-item strong { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.25rem; }
.stat-item span { font-size: 0.85rem; opacity: 0.8; }

/* Blog */
.blog-grid { display: grid; gap: 1.25rem; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.blog-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.35rem; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-excerpt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.5rem; }
.read-more { font-size: 0.82rem; font-weight: 600; color: var(--blue); }
.demo-note { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; }

/* CTA */
.cta-banner { position: relative; background-size: cover; background-position: center; padding: 3.5rem 0; color: var(--white); text-align: center; }
.cta-overlay { position: absolute; inset: 0; background: var(--overlay); }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.75rem; }
.cta-inner p { opacity: 0.92; margin-bottom: 1.5rem; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
.contact-copy h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); }
.contact-copy p { color: var(--text-light); }
.contact-details { list-style: none; margin: 1rem 0 0; padding: 0; color: var(--text-light); font-size: 0.95rem; }
.contact-details li { margin-bottom: 0.35rem; }
.contact-form { display: grid; gap: 0.75rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font); font-size: 0.95rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-feedback { font-size: 0.9rem; margin: 0; }
.form-feedback.is-success { color: #059669; }
.form-feedback.is-error { color: #dc2626; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-main { padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand p { font-size: 0.9rem; margin: 0.75rem 0 0; opacity: 0.75; max-width: 320px; }
.site-branding--footer .site-title { color: var(--white); font-size: 1.15rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-menu a { font-size: 0.85rem; opacity: 0.75; }
.footer-menu a:hover { opacity: 1; color: var(--white); }
.footer-contact-col p { margin: 0 0 0.35rem; font-size: 0.9rem; }
.footer-contact-col a { color: inherit; }
.footer-contact-col a:hover { color: var(--white); }
.social-links { display: flex; gap: 1rem; margin-top: 0.75rem; }
.social-links a { font-size: 0.78rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.04em; }
.social-links a:hover { opacity: 1; color: var(--white); }

/* Horizontal footer links — no label */
.footer-links-bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.footer-links-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.5rem; min-width: min-content; }
.footer-links-row a { font-size: 0.82rem; color: rgba(255,255,255,0.65); white-space: nowrap; }
.footer-links-row a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 0.85rem 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.78rem; opacity: 0.5; }

/* Inner pages */
.page-wrap { padding: 2.5rem 0 4rem; }
.page-title, .entry-title { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.entry-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.25rem; }
.entry-content { line-height: 1.75; }
.entry-featured { margin-bottom: 1.25rem; border-radius: var(--radius-lg); overflow: hidden; }
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-field { flex: 1; min-width: 180px; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.comments-area { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.error-wrap { text-align: center; padding: 3rem 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.page-numbers { display: inline-block; padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.85rem; }
.page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }

@media (min-width: 640px) {
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.solutions-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
	.header-inner { grid-template-columns: auto 1fr auto; padding: 1rem 2rem; }
	.nav-toggle { display: none; }
	.main-navigation { display: block !important; grid-column: auto; border: none; padding: 0; }
	.primary-menu { display: flex; justify-content: center; gap: 1.75rem; }
	.primary-menu a { border: none; padding: 0; }
	.header-cta { display: inline-flex; }
	.hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
	.hero-section { padding: 4rem 0 5rem; }
	.features-grid { grid-template-columns: repeat(4, 1fr); }
	.solutions-grid { grid-template-columns: repeat(3, 1fr); }
	.highlights-grid { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
	.footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
	.blog-grid { grid-template-columns: repeat(3, 1fr); }
	.section { padding: 4.5rem 0; }
}

@media (max-width: 991px) {
	.footer-links-row { flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 0.25rem; }
}
