/* =========================================================================
   ELSARA / 4UP - homepage sections
   ========================================================================= */

/* ---- Hero ---- */
.home-hero {
	position: relative;
	overflow: hidden;
	background-color: #15171a;
	background-image: var(--hero-bg, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding-block: clamp(56px, 9vw, 116px);
}
/* Background video sits under the scrim; the image/dark bg above remains the
   no-video and reduced-motion fallback. */
.home-hero__video {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover;
	pointer-events: none;
}
.home-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(10,12,14,.55), rgba(10,12,14,.80));
}
.home-hero__inner { position: relative; z-index: 2; max-width: 800px; }
.hero-rating {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 500;
	padding: 8px 14px; border-radius: var(--radius-pill);
}
.hero-rating:hover { color: #fff; background: rgba(255,255,255,.22); }
.hero-rating__stars { color: var(--blue); letter-spacing: 1px; }
.home-hero__title { color: #fff; margin: 20px 0 16px; }
.home-hero__text { color: rgba(255,255,255,.9); font-size: 18px; max-width: 62ch; }
.home-hero__loc { display: flex; gap: 8px; align-items: baseline; color: rgba(255,255,255,.82); font-size: 15px; }
.home-hero__loc span { color: var(--blue); }
.btn--hero {
	margin-top: 28px; background: #fff; color: var(--ink);
	font-size: 17px; font-weight: 600; padding: 10px 10px 10px 26px; gap: 16px;
}
.btn--hero:hover { background: #fff; color: var(--blue); }
.btn__circle { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 18px; transition: transform .25s ease; }
.btn--hero:hover .btn__circle { transform: translateX(4px); }

/* Hero entrance: children fade up in sequence on load (reveal classes in front-page.php). */
.home-hero__inner > .reveal:nth-child(2).is-visible { transition-delay: .08s; }
.home-hero__inner > .reveal:nth-child(3).is-visible { transition-delay: .16s; }
.home-hero__inner > .reveal:nth-child(4).is-visible { transition-delay: .24s; }
.home-hero__inner > .reveal:nth-child(5).is-visible { transition-delay: .32s; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; counter-reset: step; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.step__link { font-weight: 600; color: var(--blue); font-size: 14px; }

/* ---- About ---- */
.home-about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.home-about__grid > div p { color: var(--muted); font-size: 17px; }
.home-about__card { background: var(--dark); color: #e7e9ec; padding: 32px; border-radius: var(--radius); }
.home-about__card h3 { color: #fff; font-size: 24px; margin: 0 0 12px; }
.home-about__card p { color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 20px; }

/* ---- Marquee (pure CSS, runs without JS) ----
   Track = exactly two identical groups, each ending in its own padding-right,
   so translateX(-50%) lands precisely on the start of group two: seamless loop,
   no half-gap jump. Groups are long enough to cover ultra-wide viewports. */
.marquee { overflow: hidden; background: var(--blue); color: #fff; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: elsara-marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: 0 0 auto; white-space: nowrap; }
.marquee__group span { font-family: var(--font-display); font-weight: 600; font-size: 18px; opacity: .96; }
@keyframes elsara-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Featured ---- */
.home-featured__all { margin-top: 28px; }

/* ---- FAQ ---- */
.faq-list { margin-top: 26px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--font-display); font-weight: 500; font-size: 19px; position: relative; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 24px; color: var(--blue); transition: transform .2s ease; }
.faq-item[open] .faq-item__q::after { content: "−"; }
.faq-item__a { padding: 0 40px 22px 0; color: var(--muted); }
.faq-item__a p { margin: 0; }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.service-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card h3 { font-size: 20px; margin: 0 0 12px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-card li { position: relative; padding-left: 26px; font-size: 14px; color: #33363b; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.service-card__tags span { font-size: 13px; font-weight: 600; color: var(--blue); background: rgba(24,99,220,.10); padding: 8px 14px; border-radius: var(--radius-pill); }

/* ---- Hover polish (pointer devices only) ---- */
@media (hover: hover) and (pointer: fine) {
	.step, .review, .why-item, .service-card {
		transition: transform .22s ease, box-shadow .22s ease;
	}
	.step:hover, .review:hover, .why-item:hover, .service-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 34px rgba(0,0,0,.08);
	}
	.faq-item__q { transition: color .2s ease; }
	.faq-item__q:hover { color: var(--blue); }
}

/* ---- Reduced motion (off switch, not a slowdown) ---- */
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
	.btn__circle, .btn--hero:hover .btn__circle { transition: none; transform: none; }
	.home-hero__video { display: none; }
	.step, .review, .why-item, .service-card,
	.step:hover, .review:hover, .why-item:hover, .service-card:hover {
		transition: none; transform: none; box-shadow: none;
	}
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.steps-grid { grid-template-columns: 1fr; }
	.home-about__grid { grid-template-columns: 1fr; }
	.services-grid { grid-template-columns: 1fr; }
}
