﻿/* ============================================================
   Home page (Views/Home/Index.cshtml)
   Other pages of the new design load this file too, for its shared pieces:
   the colours, .rq-container, .rq-btn, .rq-hero and .rq-section. Their own rules are in their own file (profile.css ...).
   Every class starts with "rq-" so nothing here touches the template's style.css.
   Sides are written as start / end (margin-inline-start, inset-inline-end ...),
   so the same rules work in Arabic without a second copy.
   ============================================================ */

.rq-hero, .rq-section {
	--rq-brand: #0f7a86;        /* the template's blue (css/colors/blue.css) */
	--rq-brand-dark: #0b5563;
	--rq-brand-soft: #e1f3f2;
	--rq-ink: #0c2d33;
	--rq-text: #55696d;
	--rq-line: #dcebec;
	--rq-radius: 18px;
}

.rq-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.rq-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	border: 2px solid transparent;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
	text-decoration: none;
}

.rq-btn:hover { transform: translateY(-2px); }
.rq-btn i { font-size: 18px; }

/* The main button on the dark teal banners: coral, the one warm colour of the design */
.rq-btn-light { background: #ff8a65; color: #3a1408; box-shadow: 0 12px 28px rgba(255, 138, 101, 0.35); }
.rq-btn-light:hover { color: #3a1408; background: #ff9b7b; box-shadow: 0 14px 32px rgba(255, 138, 101, 0.45); }

.rq-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.rq-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.rq-btn-primary { background: var(--rq-brand); color: #fff; box-shadow: 0 10px 22px rgba(15, 122, 134, 0.32); }
.rq-btn-primary:hover { color: #fff; background: #0c6975; }

.rq-btn-outline { color: var(--rq-brand-dark); border-color: #bfe0e0; }
.rq-btn-outline:hover { color: var(--rq-brand-dark); background: var(--rq-brand-soft); }

.rq-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Arrows point the way the text reads */
[dir="rtl"] .rq-flip { display: inline-block; transform: scaleX(-1); }

/* ---------- Top part ---------- */
.rq-hero {
	position: relative;
	overflow: hidden;
	padding: 106px 0 40px; /* the first 82px are under the see-through header */
	color: #fff;
	background:
		radial-gradient(700px 420px at 88% 0%, rgba(255, 138, 101, 0.30), transparent 65%),
		radial-gradient(600px 400px at 0% 100%, rgba(72, 205, 255, 0.22), transparent 60%),
		linear-gradient(135deg, #06343f 0%, #0c6975 55%, #0f7a86 100%);
}

/* A light pattern of dots over the colour */
.rq-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	pointer-events: none;
}

.rq-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.rq-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.rq-pill i { color: #ffb199; }

.rq-hero h1 {
	margin: 14px 0 12px;
	font-size: clamp(30px, 3.7vw, 46px);
	line-height: 1.15;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
}

[dir="rtl"] .rq-hero h1 { letter-spacing: 0; line-height: 1.3; }

.rq-hero h1 span {
	color: #ffb199;
	white-space: nowrap;
}

.rq-lead {
	max-width: 540px;
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.rq-ticks {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 18px 0 0;
	padding: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.86);
}

.rq-ticks i { color: #7cf0c0; margin-inline-end: 4px; }

/* The drawing beside the headline: an AI core joining a project to the freelancer who fits it */
.rq-art {
	position: relative;
	max-width: 330px;
	width: 100%;
	margin-inline: auto;
}

.rq-ai { display: block; width: 100%; height: auto; overflow: visible; }

/* The two slowly turning rings around the core */
.rq-ai-ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: 230px 210px; animation: rq-turn 40s linear infinite; }
.rq-ai-ring-2 { stroke: rgba(255, 255, 255, 0.13); stroke-dasharray: 2 12; animation-duration: 70s; animation-direction: reverse; }

/* The lines from the core to the nodes, and the dots that travel along them */
.rq-ai-line { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.6; stroke-dasharray: 5 6; }
.rq-ai-line-on { stroke: #ff8a65; stroke-width: 2.2; stroke-dasharray: none; }
.rq-ai-spark { fill: #7fe3d6; }
.rq-ai-spark-warm { fill: #ffb199; }

/* The nodes: glass tiles and circles */
.rq-ai-node rect, .rq-ai-node > circle:first-child { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; }
.rq-ai-ink { fill: rgba(255, 255, 255, 0.85); stroke: none; }
.rq-ai-dim { opacity: 0.45; }
.rq-ai-stroke { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* The best match: a coral ring and a tick */
.rq-ai-node-on > circle:first-child { fill: rgba(255, 138, 101, 0.2); stroke: #ff8a65; stroke-width: 2.5; }
.rq-ai-tick circle { fill: #ff8a65; }
.rq-ai-tick path { fill: none; stroke: #3a1408; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Pixels breaking off the core, as in the logo */
.rq-ai-px { fill: #fff; }
.rq-ai-px-dim { opacity: 0.35; }
.rq-ai-px-warm { fill: #ff8a65; }

/* The core itself */
.rq-ai-core { filter: drop-shadow(0 18px 30px rgba(3, 30, 36, 0.45)); transform-origin: 230px 210px; animation: rq-breathe 5s ease-in-out infinite; }
.rq-ai-star { fill: #0b5563; }
.rq-ai-star-small { fill: #ff8a65; }

@keyframes rq-turn { to { transform: rotate(360deg); } }

@keyframes rq-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

/* ---------- "Suggest a new kind of work" (Views/Shared/_SuggestType.cshtml) ---------- */
.rq-suggest {
	display: grid;
	gap: 8px;
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px dashed #bfe0e0;
	border-radius: 14px;
	background: #f3f8f9;
}

.rq-suggest-title { font-weight: 700; font-size: 15px; color: #0b5563; }
.rq-suggest-title i { margin-inline-end: 4px; }
.rq-suggest-row { display: flex; flex-wrap: wrap; gap: 8px; }

.rq-suggest .rq-suggest-input {
	flex: 1 1 220px;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cfe2e3;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
}

.rq-suggest .rq-suggest-send { padding: 10px 20px; font-size: 15px; background: #fff; }
.rq-suggest-answer:empty { display: none; }
.rq-suggest-answer { font-size: 14.5px; font-weight: 600; }
.rq-suggest-ok { color: #14825e; }
.rq-suggest-no { color: #c4384c; }
.rq-suggest-login { font-weight: 700; color: #0f7a86; }

/* On the home page the box sits alone under the service cards, in the middle */
.rq-suggest-band { max-width: 620px; margin: 28px auto 0; }

/* ---------- Sections ---------- */
.rq-section {
	padding: 88px 0;
	background: #fff;
	color: var(--rq-text);
	scroll-margin-top: 70px; /* a menu link stops here, below the bar that stays at the top */
}
.rq-section-soft { background: #f3f8f9; }
.rq-section-tight { padding-top: 0; }

.rq-heading { max-width: 640px; margin: 0 auto 48px; text-align: center; }

.rq-eyebrow {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--rq-brand-soft);
	color: var(--rq-brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

[dir="rtl"] .rq-eyebrow { letter-spacing: 0; }

.rq-heading h2 {
	margin: 14px 0 10px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.3;
	font-weight: 800;
	color: var(--rq-ink);
}

.rq-heading p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--rq-text); }

/* ---------- Service cards ---------- */
.rq-services {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.rq-service {
	padding: 26px 22px;
	border: 1px solid var(--rq-line);
	border-radius: var(--rq-radius);
	background: #fff;
	text-align: start;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* A service card is a link to the open projects of that kind */
a.rq-service { display: block; color: inherit; }

.rq-service:hover {
	transform: translateY(-5px);
	border-color: #bfe0e0;
	box-shadow: 0 18px 40px rgba(6, 52, 63, 0.12);
}

.rq-service-icon {
	width: 54px; height: 54px;
	display: grid; place-items: center;
	border-radius: 15px;
	background: var(--rq-brand-soft);
	color: var(--rq-brand);
	font-size: 24px;
	transition: background-color 0.25s, color 0.25s;
}

.rq-service:hover .rq-service-icon { background: var(--rq-brand); color: #fff; }

.rq-service h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; color: var(--rq-ink); }
.rq-service p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--rq-text); }

/* ---------- Steps ---------- */
.rq-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.rq-steps li {
	position: relative;
	padding: 34px 26px 28px;
	border-radius: var(--rq-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(6, 52, 63, 0.07);
	text-align: start;
}

.rq-step-number {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #0f7a86, #1296a3);
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(15, 122, 134, 0.35);
}

/* The dashed line that joins one step to the next */
.rq-steps li:not(:last-child):after {
	content: "";
	position: absolute;
	top: 57px;
	inset-inline-start: 86px;
	inset-inline-end: -24px;
	border-top: 2px dashed #cfe2e3;
}

.rq-steps h3 { margin: 20px 0 8px; font-size: 19px; font-weight: 700; color: var(--rq-ink); }
.rq-steps p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--rq-text); }

/* ---------- Employers / Freelancers ---------- */
.rq-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.rq-path {
	padding: 38px 34px;
	border-radius: 24px;
	background: #f3f8f9;
	border: 1px solid var(--rq-line);
	text-align: start;
}

.rq-path-dark {
	border: none;
	color: rgba(255, 255, 255, 0.86);
	background:
		radial-gradient(420px 260px at 100% 0%, rgba(255, 138, 101, 0.28), transparent 65%),
		linear-gradient(135deg, #06343f, #0c6975);
}

.rq-path-icon {
	width: 56px; height: 56px;
	display: grid; place-items: center;
	border-radius: 16px;
	background: #fff;
	color: var(--rq-brand);
	font-size: 26px;
	box-shadow: 0 8px 20px rgba(6, 52, 63, 0.12);
}

.rq-path h3 { margin: 20px 0 6px; font-size: 24px; font-weight: 800; color: var(--rq-ink); }
.rq-path > p { margin: 0 0 18px; font-size: 16px; line-height: 1.7; }
.rq-path-dark h3 { color: #fff; }

.rq-path ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; font-size: 16px; }
.rq-path li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.rq-path li i { color: #2bb98a; font-size: 18px; margin-top: 3px; }
.rq-path-dark li i { color: #7cf0c0; }

/* ---------- Last call ---------- */
.rq-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	padding: 36px 40px;
	border-radius: 24px;
	background: var(--rq-brand-soft);
	text-align: start;
}

.rq-cta h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: var(--rq-ink); }
.rq-cta p { margin: 0; font-size: 16px; color: var(--rq-text); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1099px) {
	.rq-hero { padding-top: 130px; }
	.rq-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.rq-hero-grid { grid-template-columns: 1fr; }
	.rq-art { display: none; } /* the drawing is decoration; phones get the words first */
	.rq-hero { padding: 120px 0 64px; }
	.rq-section { padding: 64px 0; }
	.rq-section-tight { padding-top: 0; }
	.rq-steps, .rq-paths { grid-template-columns: 1fr; }
	.rq-steps li:not(:last-child):after { display: none; }
}

@media (max-width: 560px) {
	.rq-services { grid-template-columns: 1fr; }
	.rq-actions .rq-btn { flex: 1 1 100%; justify-content: center; }
	.rq-path { padding: 30px 24px; }
	.rq-cta { padding: 28px 24px; }
}

/* People who asked their device for less movement get a still page */
@media (prefers-reduced-motion: reduce) {
	.rq-ai-ring, .rq-ai-core { animation: none; }
	.rq-ai-spark { display: none; }
	.rq-btn, .rq-service { transition: none; }
}
