/* RansTech Digital: design refinements layered on top of main.css */

/* ---------- Header (sticky, glass, mobile menu) ---------- */
.header {
	position: sticky;
	top: 0;
	height: 84px;
	background: rgba(224, 238, 243, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(5, 42, 60, 0.06);
	transition: box-shadow 0.3s ease;
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.header nav a {
	position: relative;
	padding: 6px 0;
	transition: color 0.2s ease;
}
.header nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: #d66b5d;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.header nav a:hover::after { transform: scaleX(1); }
.menu-toggle {
	display: none;
	width: 46px; height: 46px;
	margin-left: 10px;
	border: 0; border-radius: 10px;
	background: #052a3c;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.25s ease, opacity 0.2s ease; }
.header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1280px) {
	.header { gap: 28px; }
	.header nav { gap: 28px; }
}
@media (max-width: 1000px) {
	.menu-toggle { display: flex; }
	.header > .button { margin-left: auto; min-height: 46px; padding: 0 18px; font-size: 14px; }
	.header.menu-open nav {
		display: flex;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 14px 24px 24px;
		background: #e0eef3;
		box-shadow: 0 24px 40px rgba(5, 42, 60, 0.14);
	}
	.header.menu-open nav a { width: 100%; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(5, 42, 60, 0.08); }
}
@media (max-width: 560px) { .header > .button { display: none; } .menu-toggle { margin-left: auto; } }

/* ---------- Buttons ---------- */
.button { border-radius: 10px; box-shadow: 0 6px 16px rgba(214, 107, 93, 0.25); }
.button-dark { box-shadow: 0 6px 16px rgba(5, 42, 60, 0.22); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: linear-gradient(180deg, #e0eef3 0%, #f1f8fa 60%, #f8fcfc 100%); }
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(5, 42, 60, 0.09) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
	pointer-events: none;
}
.hero .eyebrow {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(214, 107, 93, 0.3);
	box-shadow: 0 6px 18px rgba(5, 42, 60, 0.06);
}
.hero h1 { letter-spacing: -0.02em; font-size: clamp(44px, 6vw, 72px); }
.hero-stack { color: #994439; }
.hero-proof {
	margin: 30px 0 0; padding: 0; list-style: none;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.hero-proof li {
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #d3e4ea;
	font-family:var(--f-body);font-weight:600;
	font-size: 13px;
	color: #343352;
}
.hero-proof li::before { content: "\2022"; margin-right: 8px; color: #d66b5d; }
.flow-item { border-radius: 14px; position: relative; overflow: hidden; }
.flow-item::after {
	content: "";
	position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	background: linear-gradient(90deg, #74c1d9, #d66b5d);
	transform: scaleX(0); transform-origin: left;
	transition: transform 0.35s ease;
}
.flow-item:hover::after { transform: scaleX(1); }
.flow-item:hover { box-shadow: 0 18px 36px rgba(5, 42, 60, 0.1); }

/* ---------- Value strip ---------- */
.value-strip { margin-top: 0; background: linear-gradient(90deg, #052a3c, #0b3b51); }
.value-strip strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section h2 { letter-spacing: -0.015em; }
.eyebrow { display: inline-block; }
.service-card { border-radius: 16px; box-shadow: 0 10px 30px rgba(5, 42, 60, 0.05); position: relative; overflow: hidden; }
.service-card i { width: 44px; height: 5px; }
.service-card:hover { box-shadow: 0 26px 50px rgba(5, 42, 60, 0.14); }
.workflow-card, .price-card { border-radius: 22px; box-shadow: 0 26px 60px rgba(5, 42, 60, 0.18); }
.workflow-step { border-radius: 12px; }
.capability-grid article { border-radius: 16px; background: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.capability-grid article:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(5, 42, 60, 0.1); border-color: #74c1d9; }
.benefit-grid { gap: 20px; background: none; border: 0; }
.benefit-grid article { border: 1px solid #d3e4ea; border-radius: 18px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-grid article:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(5, 42, 60, 0.08); }
.benefit-grid span {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: #fbeae6;
}
.faq-list details { border: 1px solid #e3ebed; border-radius: 14px; margin-bottom: 12px; padding: 0 22px; background: #fbfdfd; transition: box-shadow 0.25s ease; }
.faq-list details[open] { background: #fff; box-shadow: 0 14px 30px rgba(5, 42, 60, 0.07); }
.faq-list summary { padding: 20px 0; }
.faq-list details p { padding-right: 20px; }
.final-cta { background: linear-gradient(120deg, #d66b5d 0%, #e08a62 100%); }

/* ---------- Voice section ---------- */
.voice-section { background: linear-gradient(180deg, #fff 0%, #f1f8fa 100%); }
.voice-card {
	position: relative;
	overflow: hidden;
	padding: 32px;
	border-radius: 28px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(116, 193, 217, 0.28) 0%, transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(214, 107, 93, 0.2) 0%, transparent 55%),
		#052a3c;
	box-shadow: 0 34px 80px rgba(5, 42, 60, 0.28);
}
.voice-persona { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.voice-persona strong { display: block; font-family:var(--f-display);font-weight:600; font-size: 19px; }
.voice-persona small { display: block; margin-top: 2px; color: #9fb3b9; font-size: 12px; }
.avatar {
	position: relative;
	width: 58px; height: 58px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: conic-gradient(from 200deg, #d66b5d, #e7a954, #74c1d9, #d66b5d);
}
.avatar::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0b3b51; }
.avatar span { position: relative; z-index: 1; font-family:var(--f-display);font-weight:600; font-size: 22px; }
.voice-card.is-live .avatar { animation: avatar-pulse 1.6s ease-out infinite; }
.voice-card h3 { margin-top: 26px; font-size: 30px; letter-spacing: -0.01em; }
.voice-intro { font-size: 14px; line-height: 1.55; max-width: 460px; }
.voice-player {
	height: 88px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.25s ease, transform 0.25s ease;
}
.voice-player:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.voice-player:focus-visible { outline: 2px solid #74c1d9; outline-offset: 3px; }
.play-icon { width: 54px; height: 54px; font-size: 16px; box-shadow: 0 0 0 8px rgba(214, 107, 93, 0.2); flex: 0 0 auto; }
.waveform i { background: linear-gradient(#aed1dc, #74c1d9); }
.is-playing .waveform i { background: linear-gradient(#e7a954, #d66b5d); }
.duration { min-width: 86px; text-align: right; font-size: 12px; font-family:var(--f-body);font-weight:600; }
.voice-progress { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.voice-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #74c1d9, #d66b5d); transition: width 0.4s ease; }
.chat {
	margin-top: 18px;
	max-height: 290px;
	overflow-y: auto;
	display: flex; flex-direction: column; gap: 10px;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: #3d6678 transparent;
}
.chat-line {
	max-width: 88%;
	padding: 11px 15px;
	border-radius: 16px;
	font-size: 14px; line-height: 1.5;
	transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.chat-line small { display: block; margin-bottom: 3px; font-family:var(--f-body);font-weight:700; font-size: 9.5px; letter-spacing: 0.07em; opacity: 0.7; }
.chat-line.ai { align-self: flex-start; background: #f8fcfc; color: #052a3c; border-bottom-left-radius: 4px; }
.chat-line.caller { align-self: flex-end; background: #1b4a5e; color: #fff; border-bottom-right-radius: 4px; }
.chat.is-started .chat-line { opacity: 0.45; }
.chat.is-started .chat-line.is-done { opacity: 0.75; }
.chat.is-started .chat-line.is-active { opacity: 1; box-shadow: 0 0 0 2px #d66b5d, 0 12px 24px rgba(0, 0, 0, 0.18); transform: scale(1.01); }
.voice-chips { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.voice-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #cfe3e9; font-size: 12px; }
.voice-chips li::before { content: "\2713"; margin-right: 6px; color: #77d6a1; }
.demo-note { line-height: 1.5; }
@keyframes avatar-pulse {
	0% { box-shadow: 0 0 0 0 rgba(214, 107, 93, 0.5); }
	100% { box-shadow: 0 0 0 16px rgba(214, 107, 93, 0); }
}
@media (max-width: 560px) {
	.voice-card { padding: 22px; border-radius: 22px; }
	.chat-line { max-width: 94%; }
	.duration { min-width: 0; }
}

/* ---------- Footer ---------- */
footer.site-footer {
	padding: 0;
	background: #052a3c;
	color: #cfe0e6;
	position: relative;
	overflow: hidden;
}
footer.site-footer::before {
	content: "";
	position: absolute; top: -160px; right: -120px;
	width: 420px; height: 420px; border-radius: 50%;
	background: #74c1d9; opacity: 0.1; filter: blur(70px);
}
.footer-inner { position: relative; width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; gap: 56px; }
.footer-brand > a { display: inline-block; padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.site-footer img { display: block; filter: none; width: 190px; height: 48px; object-fit: contain; object-position: left center; }
.footer-tagline { margin-top: 18px; font-family:var(--f-display);font-weight:600; font-size: 18px; color: #fff; }
.footer-blurb { margin-top: 10px; max-width: 340px; font-size: 14px; line-height: 1.7; color: #9fb7bf; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
	width: 42px; height: 42px; border-radius: 12px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover { background: #d66b5d; border-color: #d66b5d; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-col h4 { margin-bottom: 18px; font-family:var(--f-body);font-weight:700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #74c1d9; }
.footer-col > a:not(.button):not(.footer-mail) {
	display: block; padding: 6px 0;
	color: #cfe0e6; font-size: 15px; text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col > a:not(.button):not(.footer-mail):hover { color: #fff; transform: translateX(4px); }
.footer-contact p { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: #9fb7bf; }
.footer-contact .button { width: 100%; }
.footer-mail { display: inline-block; margin-top: 16px; color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.footer-mail:hover { text-decoration-color: #d66b5d; }
.footer-bottom {
	margin-top: 56px;
	padding: 24px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	font-size: 13px; color: #8ea8b1;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfe0e6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.footer-inner { padding-top: 52px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Inner pages: title band ---------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: 76px 0 70px;
	text-align: center;
	background: linear-gradient(180deg, #e0eef3 0%, #f1f8fa 100%);
}
.page-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(5, 42, 60, 0.08) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid rgba(214, 107, 93, 0.3); }
.page-hero h1 { margin-top: 18px; font-family:var(--f-display);font-weight:600; font-size: clamp(36px, 5vw, 58px); line-height: 1.15; letter-spacing: -0.02em; }
.page-hero-copy { max-width: 640px; margin: 16px auto 0; color: #52566c; font-size: 18px; line-height: 1.6; }
.page-body.rt-content { padding: 72px 0 110px; }
.page-body .entry { font-size: 17px; }
.page-body .entry > h2.wp-block-heading {
	position: relative;
	margin: 64px 0 24px;
	padding-bottom: 16px;
	font-family:var(--f-display);font-weight:600;
	font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.page-body .entry > h2.wp-block-heading:first-child { margin-top: 0; }
.page-body .entry > h2.wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #d66b5d, #e7a954); }
.page-body .entry h3 { font-family:var(--f-display);font-weight:600; font-size: 24px; margin: 28px 0 12px; }
.page-body .entry p { margin-bottom: 1.1em; color: #3f4358; line-height: 1.75; }
.page-body .entry strong { color: #052a3c; }
.page-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 28px; }
.page-body .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .page-body .wp-block-column { flex: 1 1 100% !important; } }
.page-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-body .entry .wp-block-button__link,
.page-body .entry .wp-block-button__link:visited {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px;
	border-radius: 10px;
	background: #d66b5d; color: #052a3c;
	font-family:var(--f-body);font-weight:700; font-size: 16px; font-weight: 700; text-decoration: none;
	border: 2px solid #d66b5d;
	box-shadow: 0 6px 16px rgba(214, 107, 93, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.page-body .entry .wp-block-button__link:hover { transform: translateY(-3px); background: #df7769; border-color: #df7769; color: #052a3c; box-shadow: 0 12px 28px rgba(5, 42, 60, 0.16); }
.page-body .entry .is-style-outline .wp-block-button__link { background: transparent; border-color: #052a3c; color: #052a3c; box-shadow: none; }
.page-body .entry .is-style-outline .wp-block-button__link:hover { background: #052a3c; border-color: #052a3c; color: #fff; }

/* About: founder block */
.page-slug-about .page-body .entry > .wp-block-columns:first-of-type {
	align-items: center;
	padding: 36px;
	border-radius: 28px;
	background: #fff;
	border: 1px solid #d9e8ed;
	box-shadow: 0 26px 60px rgba(5, 42, 60, 0.08);
	gap: 48px;
}
.page-slug-about .wp-block-image.size-large { position: relative; margin: 0; }
.page-slug-about .wp-block-image.size-large img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px rgba(5, 42, 60, 0.18); }
.page-slug-about .page-body .entry > .wp-block-columns:first-of-type .wp-block-column:last-child p { font-size: 18px; }
/* About: team cards */
.page-slug-about .wp-block-columns:has(.wp-block-image.size-medium) { gap: 22px; }
.page-slug-about .wp-block-columns:has(.wp-block-image.size-medium) .wp-block-column {
	padding: 14px 14px 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #dbe8ec;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-slug-about .wp-block-columns:has(.wp-block-image.size-medium) .wp-block-column:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 46px rgba(5, 42, 60, 0.12);
	border-color: #74c1d9;
}
.page-slug-about .wp-block-image.size-medium { margin: 0 0 16px; }
.page-slug-about .wp-block-image.size-medium img {
	width: 100%; aspect-ratio: 1 / 1; height: auto;
	object-fit: cover; object-position: top center;
	border-radius: 14px;
	background: linear-gradient(160deg, #e0eef3, #f8e8e4);
}
.page-slug-about .wp-block-columns:has(.wp-block-image.size-medium) p { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: #52566c; }
.page-slug-about .wp-block-columns:has(.wp-block-image.size-medium) p strong { display: block; margin-bottom: 2px; font-family:var(--f-display);font-weight:600; font-size: 18px; color: #052a3c; }
.page-slug-about .page-body .wp-block-buttons { justify-content: center; margin-top: 44px; }

/* White label page: tech stack cards + reviews */
.page-slug-web-development .wp-block-columns:has(> .wp-block-column > h4) .wp-block-column {
	padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #dbe8ec;
}
.page-slug-web-development h4 { margin: 0 0 14px; font-family:var(--f-display);font-weight:600; font-size: 18px; color: #994439; }
.page-slug-web-development .wp-block-list { margin: 0; padding: 0; list-style: none; }
.page-slug-web-development .wp-block-list li { padding: 6px 0; border-bottom: 1px dashed #e1ecef; }
.page-slug-web-development .wp-block-list li:last-child { border-bottom: 0; }
.page-slug-web-development .wp-block-image img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 14px 34px rgba(5, 42, 60, 0.1); }

/* Privacy policy: readable column */
.page-slug-privacy-policy .page-body .entry { max-width: 820px; margin: 0 auto; }
.page-slug-privacy-policy .entry .wp-block-list { margin: 0 0 1.1em 1.3em; list-style: disc; color: #3f4358; line-height: 1.8; }
.page-slug-privacy-policy .entry h3 { margin-top: 38px; }
.page-slug-privacy-policy .entry h4 { margin: 20px 0 8px; font-size: 18px; }

/* ---------- Final CTA buttons ---------- */
.final-cta .cta-actions { gap: 14px; min-width: 280px; }
.final-cta .cta-actions .button {
	width: 100%;
	min-height: 58px;
	border-radius: 12px;
	font-size: 17px;
	border: 2px solid transparent;
}
.final-cta .cta-actions .button-dark {
	background: #052a3c;
	color: #fff;
	box-shadow: 0 12px 28px rgba(5, 42, 60, 0.32);
}
.final-cta .cta-actions .button-dark:hover { background: #0b3b51; }
.final-cta .cta-actions .button:not(.button-dark) {
	background: #fff;
	color: #052a3c;
	box-shadow: 0 12px 28px rgba(5, 42, 60, 0.16);
}
.final-cta .cta-actions .button:not(.button-dark):hover { background: #fdf3f1; border-color: #052a3c; }
