/* Homepage-only sections. */

/* ===== Hero =====
   Top padding clears the absolutely-positioned header (see layout.css);
   the 220/96px top-bottom split mirrors the reference's vh-based spacer
   rhythm (~30vh / 1vh / 16vh) translated to this hero's fixed height. */
.nuqta-hero {
	background: radial-gradient(circle at 20% 20%, var(--color-secondary-light) 0%, var(--color-bg) 55%);
	padding-block-start: 220px;
	padding-block-end: 96px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
@media (max-width: 1024px) {
	.nuqta-hero {
		padding-block-start: 120px;
		padding-block-end: 64px;
	}
}

/* ===== Hero — optional image/video background =====
   .nuqta-hero-bg-media is absolutely positioned behind the content, with
   a dark scrim (.nuqta-hero-bg-overlay) for text contrast — only present
   when an image/video is actually configured (hero.php only prints these
   elements for hero_bg_type=image|youtube), so the default gradient hero
   is completely unaffected. */
.nuqta-hero-bg-image,
.nuqta-hero-bg-youtube {
	background: var(--color-primary-dark); /* fallback color while media loads */
}
.nuqta-hero-bg-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.nuqta-hero-bg-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Standard "fill + crop to cover" technique for a background YouTube
   embed — the iframe is oversized to a 16:9 box centered and scaled to
   always cover the section regardless of its aspect ratio, no JS needed. */
.nuqta-hero-bg-video {
	pointer-events: none;
}
.nuqta-hero-bg-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16 / 9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16 / 9 */
	transform: translate(-50%, -50%);
}
.nuqta-hero-bg-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.55) 0%, rgba(var(--color-primary-rgb), 0.75) 100%);
}
.nuqta-hero-bg-image .nuqta-hero-inner,
.nuqta-hero-bg-youtube .nuqta-hero-inner {
	position: relative;
	z-index: 2;
}
.nuqta-hero-bg-image .nuqta-hero-inner h1,
.nuqta-hero-bg-youtube .nuqta-hero-inner h1 {
	color: var(--color-on-brand);
}
.nuqta-hero-bg-image .nuqta-hero-subtitle,
.nuqta-hero-bg-youtube .nuqta-hero-subtitle {
	color: rgba(255, 255, 255, 0.9);
}
.nuqta-hero-inner h1 {
	max-width: 800px;
	margin-inline: auto;
}
.nuqta-hero-subtitle {
	max-width: 620px;
	margin: var(--space-4) auto var(--space-6);
	font-size: 1.15rem;
	color: var(--color-text-muted);
}
/* Reference's pill + hover-inversion CTA signature, scoped to the hero
   only — padding is generous-but-content-safe rather than the reference's
   literal 10px/150px (sized for short fixed text, unsafe for editable
   Arabic copy of arbitrary length). */
.nuqta-hero .nuqta-btn-cta {
	padding: 14px var(--space-8);
	font-size: 1.1rem;
	border: 2px solid transparent;
	box-shadow: 0 4px 18px rgba(var(--color-accent-rgb), 0.5);
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nuqta-hero .nuqta-btn-cta:hover {
	background: transparent;
	color: var(--color-accent);
	border-color: var(--color-accent);
}

/* ===== Services showcase =====
   Service category card shell (.nuqta-category-card/-media/-title-overlay)
   lives in components.css — it's reused by service-card.php on the
   services listing/archive pages, which load inner-pages.css, not this
   file (home.css only loads on the front page). Everything below is
   scoped under .nuqta-services-showcase (or targets classes only this
   template renders), so none of it reaches the archive page. */
.nuqta-category-card-media {
	background: var(--card-tint, var(--color-primary));
	color: rgba(255, 255, 255, 0.5);
}
.nuqta-services-showcase .nuqta-grid-4 {
	gap: var(--gap-extended);
}
/* Anchors the title overlay to the media box specifically (it's nested
   inside it here, unlike the archive page's card-media which has no
   nested overlay) — otherwise .inset-block-end:0 pins to the whole card,
   which now also includes the description body below and would collide
   with it. Scoped to this section; the shared .nuqta-category-card-media
   rule in components.css is untouched. */
.nuqta-services-showcase .nuqta-category-card-media {
	position: relative;
}
/* Fallback badge — shown until a category photo is uploaded (term-meta
   field, admin-editable). A bare "+" glyph read as a missing image rather
   than a deliberate mark, so it's a proper ringed badge instead. */
.nuqta-category-card-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: var(--radius-pill);
	border: 2px solid rgba(255, 255, 255, 0.5);
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--color-on-brand);
}
.nuqta-category-card-media img {
	transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.nuqta-category-card:hover .nuqta-category-card-media img {
	transform: scale(1.08);
}
/* The title stays as a short single-line overlay directly on the photo/
   tint (matches the reference's card treatment, and keeps a predictable
   height so it never collides with the badge above it). The category's
   real description — genuinely useful content, not in the reference —
   lives below in normal document flow instead, on its own readable
   surface, rather than crowding the overlay. */
.nuqta-category-card-body {
	padding: var(--space-4) var(--space-5);
	background: var(--color-surface);
}
.nuqta-category-card-desc {
	margin: 0;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}
.nuqta-services-showcase-cta {
	text-align: center;
	margin-block-start: var(--space-7);
}

/* ===== Process steps ===== */
.nuqta-process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	max-width: 760px;
	margin-inline: auto;
}
.nuqta-process-step {
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: var(--space-4) var(--space-5);
}
.nuqta-process-step h3 {
	margin-bottom: var(--space-1);
	font-size: 1.05rem;
}
.nuqta-process-step p {
	margin: 0;
	color: var(--color-text-muted);
}
.nuqta-process-step-number {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-on-brand);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== Team preview ===== */
.nuqta-team-preview {
	background: var(--color-primary);
	color: var(--color-on-brand);
	text-align: center;
}
.nuqta-team-preview h2 { color: var(--color-on-brand); }
.nuqta-team-preview-inner {
	max-width: 700px;
	margin-inline: auto;
}
.nuqta-team-preview p {
	color: #DDEDE8;
}

/* .nuqta-cta-banner styles moved to components.css — the banner is now
   also reused by page.php's generic template, which loads inner-pages.css
   (not this file), so its CSS needs to be available on every page. */

@media (min-width: 768px) {
	.nuqta-process-step {
		padding: var(--space-5) var(--space-6);
	}
}
