/*
Theme Name: Nu E Sheba
Theme URI: https://nuesheba.com
Author: WordPressistic
Author URI: https://wordpressistic.com
Description: A lightweight, accessible WordPress theme for the Nu E Sheba education-services website.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuesheba
Tags: accessibility-ready, custom-logo, editor-style, featured-images, translation-ready
*/

:root {
	--color-accent: #1a56db;
	--color-accent-strong: #1344ad;
	--color-accent-soft: #eaf1ff;
	--color-accent-border: #b9ccf8;
	--color-on-accent: #ffffff;
	--color-text: #16181d;
	--color-text-muted: #5a6072;
	--color-surface: #ffffff;
	--color-surface-raised: #f7f8fa;
	--color-border: #e2e5ec;
	--color-border-strong: #c9cedb;
	--color-success: #0f7b52;
	--color-danger: #b3261e;
	--color-danger-soft: #fdecea;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Bengali", sans-serif;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.375rem;
	--font-size-2xl: 1.75rem;
	--font-size-3xl: clamp(2.25rem, 5vw, 4rem);
	--line-height-tight: 1.2;
	--line-height-base: 1.65;
	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2.5rem;
	--space-2xl: 4rem;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
	--shadow-md: 0 4px 12px rgb(16 24 40 / 8%);
	--shadow-lg: 0 12px 32px rgb(16 24 40 / 10%);
	--container-width: 72rem;
	--measure: 68ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--color-text);
	background: var(--color-surface);
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	overflow-wrap: break-word;
}

body.admin-bar .nuesheba-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .nuesheba-site-header {
		top: 46px;
	}
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--space-sm);
	line-height: var(--line-height-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--font-size-3xl);
}

h2 {
	font-size: var(--font-size-2xl);
}

h3 {
	font-size: var(--font-size-xl);
}

p {
	margin: 0 0 var(--space-md);
	text-wrap: pretty;
}

a {
	color: var(--color-accent-strong);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.nuesheba-container {
	width: min(100% - 2rem, var(--container-width));
	margin-inline: auto;
}

.nuesheba-skip-link {
	position: absolute;
	left: -9999px;
	top: var(--space-md);
	z-index: 1000;
	padding: var(--space-sm) var(--space-md);
	color: var(--color-text);
	background: var(--color-surface);
	border: 2px solid var(--color-accent);
	border-radius: var(--radius-md);
}

.nuesheba-skip-link:focus {
	left: var(--space-md);
}

.nuesheba-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.nuesheba-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 94%);
	border-bottom: 1px solid var(--color-border);
	backdrop-filter: blur(12px);
}

.nuesheba-header-inner {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-height: 4.5rem;
}

.nuesheba-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	margin-right: auto;
	color: var(--color-text);
	line-height: 1.2;
}

.nuesheba-brand-name {
	color: var(--color-text);
	font-size: 1.125rem;
	font-weight: 750;
	text-decoration: none;
}

.nuesheba-brand-logo,
.nuesheba-brand-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.nuesheba-brand-logo img {
	width: auto;
	max-width: 10rem;
	max-height: 2.5rem;
}

.nuesheba-nav {
	display: none;
}

.nuesheba-nav ul,
.nuesheba-mobile-nav ul,
.nuesheba-footer-links,
.nuesheba-language-switcher ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nuesheba-nav ul {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
}

.nuesheba-nav a,
.nuesheba-mobile-nav a {
	color: var(--color-text);
	font-size: var(--font-size-sm);
	font-weight: 600;
	text-decoration: none;
}

.nuesheba-nav a:hover,
.nuesheba-mobile-nav a:hover {
	color: var(--color-accent-strong);
}

.nuesheba-mobile-nav {
	position: relative;
}

.nuesheba-mobile-nav summary {
	padding: 0.55rem 0.7rem;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	font-weight: 650;
	cursor: pointer;
	list-style: none;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
}

.nuesheba-mobile-nav summary::-webkit-details-marker {
	display: none;
}

.nuesheba-mobile-nav ul {
	position: absolute;
	right: 0;
	top: calc(100% + var(--space-xs));
	min-width: 14rem;
	padding: var(--space-sm);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.nuesheba-mobile-nav li + li {
	margin-top: var(--space-xs);
}

.nuesheba-header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.nuesheba-header-actions .nuesheba-button {
	display: none;
}

.nuesheba-language-switcher {
	margin-left: var(--space-xs);
}

.nuesheba-language-switcher ul {
	display: flex;
	gap: var(--space-2xs);
}

.nuesheba-language-switcher a {
	padding: 0.35rem 0.45rem;
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	text-decoration: none;
	border-radius: var(--radius-sm);
}

.nuesheba-language-switcher .current-lang a,
.nuesheba-language-switcher a:hover {
	color: var(--color-accent-strong);
	background: var(--color-accent-soft);
}

@media (min-width: 60rem) {
	.nuesheba-nav {
		display: block;
	}

	.nuesheba-mobile-nav {
		display: none;
	}

	.nuesheba-header-actions .nuesheba-button {
		display: inline-flex;
	}
}

/* Buttons */
.nuesheba-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	color: var(--color-accent-strong);
	background: transparent;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-md);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nuesheba-button:hover {
	background: var(--color-accent-soft);
	transform: translateY(-1px);
}

.nuesheba-button--primary {
	color: var(--color-on-accent);
	background: var(--color-accent);
}

.nuesheba-button--primary:hover {
	color: var(--color-on-accent);
	background: var(--color-accent-strong);
	border-color: var(--color-accent-strong);
}

.nuesheba-button--light {
	color: var(--color-accent-strong);
	background: var(--color-surface);
	border-color: var(--color-surface);
}

.nuesheba-button--light:hover {
	background: var(--color-accent-soft);
}

.nuesheba-button:active {
	transform: scale(0.98);
}

/* Shared content */
.nuesheba-section {
	padding-block: var(--space-2xl);
}

.nuesheba-section--tight {
	padding-block: var(--space-xl);
}

.nuesheba-section-heading {
	max-width: var(--measure);
	margin-bottom: var(--space-xl);
}

.nuesheba-eyebrow {
	margin-bottom: var(--space-xs);
	color: var(--color-accent-strong);
	font-size: var(--font-size-sm);
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nuesheba-section-description,
.nuesheba-muted {
	color: var(--color-text-muted);
}

.nuesheba-prose {
	max-width: var(--measure);
}

.nuesheba-prose h2,
.nuesheba-prose h3,
.nuesheba-prose h4 {
	margin-top: var(--space-xl);
}

.nuesheba-prose ul,
.nuesheba-prose ol {
	padding-left: var(--space-lg);
}

.nuesheba-prose li + li {
	margin-top: var(--space-xs);
}

.nuesheba-prose blockquote {
	margin: var(--space-xl) 0;
	padding-left: var(--space-md);
	color: var(--color-text-muted);
	border-left: 3px solid var(--color-accent-border);
}

.nuesheba-prose table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.nuesheba-prose th,
.nuesheba-prose td {
	padding: var(--space-xs) var(--space-sm);
	text-align: left;
	border: 1px solid var(--color-border);
}

.nuesheba-prose th {
	background: var(--color-surface-raised);
}

/* Hero */
.nuesheba-hero {
	padding-block: clamp(4rem, 10vw, 8rem);
	background: linear-gradient(135deg, var(--color-accent-soft), var(--color-surface) 70%);
}

.nuesheba-hero-grid {
	display: grid;
	gap: var(--space-xl);
	align-items: center;
}

.nuesheba-hero-copy {
	max-width: 45rem;
}

.nuesheba-hero h1 {
	max-width: 12ch;
}

.nuesheba-hero-answer {
	max-width: 48rem;
	font-size: clamp(1.2rem, 2.3vw, 1.5rem);
	font-weight: 550;
}

.nuesheba-hero-description {
	max-width: var(--measure);
	color: var(--color-text-muted);
	font-size: var(--font-size-lg);
}

.nuesheba-hero-actions,
.nuesheba-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.nuesheba-hero-media img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

@media (min-width: 60rem) {
	.nuesheba-hero-grid:has(.nuesheba-hero-media) {
		grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
	}
}

/* Cards and grids */
.nuesheba-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nuesheba-card {
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.nuesheba-card:hover {
	box-shadow: var(--shadow-md);
}

.nuesheba-card h3 {
	margin-top: 0;
}

.nuesheba-card h3 a {
	color: inherit;
	text-decoration: none;
}

.nuesheba-card h3 a:hover {
	color: var(--color-accent-strong);
}

.nuesheba-card p:last-child {
	margin-bottom: 0;
}

.nuesheba-card-meta {
	margin-bottom: var(--space-xs);
	color: var(--color-accent-strong);
	font-size: var(--font-size-sm);
	font-weight: 700;
}

.nuesheba-card-link {
	display: inline-flex;
	margin-top: var(--space-md);
	font-weight: 700;
}

.nuesheba-value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: var(--space-md);
}

.nuesheba-value {
	padding: var(--space-md);
	background: var(--color-surface-raised);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.nuesheba-value-icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: var(--space-sm);
	color: var(--color-on-accent);
	background: var(--color-accent);
	border-radius: var(--radius-pill);
	font-weight: 800;
}

/* Process */
.nuesheba-process {
	display: grid;
	gap: var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nuesheba-step;
}

.nuesheba-process li {
	position: relative;
	padding: var(--space-md) var(--space-md) var(--space-md) 4rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	counter-increment: nuesheba-step;
}

.nuesheba-process li::before {
	position: absolute;
	left: var(--space-md);
	top: var(--space-md);
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--color-on-accent);
	background: var(--color-accent);
	border-radius: var(--radius-pill);
	font-weight: 800;
	content: counter(nuesheba-step);
}

.nuesheba-process h3 {
	margin-top: 0;
}

.nuesheba-process p:last-child {
	margin-bottom: 0;
}

.nuesheba-process-duration {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

/* FAQ */
.nuesheba-faq {
	max-width: var(--measure);
	border-top: 1px solid var(--color-border);
}

.nuesheba-faq details {
	border-bottom: 1px solid var(--color-border);
}

.nuesheba-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding-block: var(--space-md);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.nuesheba-faq summary::-webkit-details-marker {
	display: none;
}

.nuesheba-faq summary::after {
	color: var(--color-accent-strong);
	font-size: var(--font-size-xl);
	content: "+";
}

.nuesheba-faq details[open] summary::after {
	content: "−";
}

.nuesheba-faq-answer {
	padding-bottom: var(--space-md);
	color: var(--color-text-muted);
}

/* CTA */
.nuesheba-cta {
	color: var(--color-on-accent);
	background: var(--color-accent);
}

.nuesheba-cta h2,
.nuesheba-cta p,
.nuesheba-cta .nuesheba-eyebrow {
	color: inherit;
}

.nuesheba-cta p {
	opacity: 0.92;
}

/* Enquiry form styles are shared with the core plugin. */
.nuesheba-enquiry-form {
	display: grid;
	gap: var(--space-md);
	max-width: 48rem;
	padding: var(--space-lg);
	background: var(--color-surface-raised);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.nuesheba-form-grid {
	display: grid;
	gap: var(--space-md);
}

.nuesheba-field {
	display: grid;
	gap: var(--space-xs);
	margin: 0;
}

.nuesheba-field label {
	font-weight: 650;
}

.nuesheba-field input,
.nuesheba-field select,
.nuesheba-field textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem var(--space-sm);
	color: var(--color-text);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
}

.nuesheba-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.nuesheba-field input:focus,
.nuesheba-field select:focus,
.nuesheba-field textarea:focus {
	border-color: var(--color-accent);
}

.nuesheba-field--checkbox {
	display: block;
}

.nuesheba-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	font-weight: 400;
}

.nuesheba-field--checkbox input {
	width: 1.15rem;
	min-height: auto;
	height: 1.15rem;
	margin-top: 0.25rem;
	flex: none;
}

.nuesheba-field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nuesheba-form-error,
.nuesheba-form-success {
	max-width: 48rem;
	padding: var(--space-md);
	border-radius: var(--radius-md);
}

.nuesheba-form-error {
	color: var(--color-danger);
	background: var(--color-danger-soft);
	border-left: 3px solid var(--color-danger);
}

.nuesheba-form-success {
	background: #e6f4ee;
	border: 1px solid var(--color-success);
}

.nuesheba-form-success h2 {
	margin-top: 0;
	color: var(--color-success);
}

@media (min-width: 48rem) {
	.nuesheba-form-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Footer */
.nuesheba-site-footer {
	margin-top: var(--space-2xl);
	padding-top: var(--space-xl);
	background: var(--color-surface-raised);
	border-top: 1px solid var(--color-border);
}

.nuesheba-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--space-xl);
	padding-bottom: var(--space-xl);
}

.nuesheba-footer-heading {
	margin-bottom: var(--space-sm);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nuesheba-footer-links li + li {
	margin-top: var(--space-xs);
}

.nuesheba-footer-links a {
	text-decoration: none;
}

.nuesheba-opening-hours {
	margin: 0;
	padding: 0;
	color: var(--color-text-muted);
	list-style: none;
}

.nuesheba-footer-legal {
	padding-block: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.nuesheba-footer-legal p:last-child {
	margin-bottom: 0;
}

.nuesheba-disclaimer {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

/* WordPress blocks and pagination */
.alignwide {
	width: min(100% - 2rem, 80rem);
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	margin-inline: 0;
}

.wp-block-image img {
	border-radius: var(--radius-md);
}

.nuesheba-pagination {
	display: flex;
	justify-content: center;
	gap: var(--space-xs);
	margin-top: var(--space-xl);
}

.nuesheba-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: var(--space-xs);
	text-decoration: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.nuesheba-pagination .current,
.nuesheba-pagination a:hover {
	color: var(--color-on-accent);
	background: var(--color-accent);
	border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		 scroll-behavior: auto !important;
		 transition-duration: 0.01ms !important;
		 animation-duration: 0.01ms !important;
		 animation-iteration-count: 1 !important;
	}
}
