/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
Description: Ferant OÜ — toliteenused. Макет перенесён из Lovable (ferant-customs-solutions.lovable.app). Шрифты Inter + JetBrains Mono, цвета brand #28007f.
Author: SDLab
*/

/* ===== Fonts ===== */
:root {
	--fer-brand: #28007f;
	--fer-brand-dark: #2e008e;
	--fer-foreground: #f8fafc;
	--fer-surface: #f8fafc;
	--fer-slate-600: #475569;
	--fer-slate-500: #64748b;
	--fer-slate-400: #94a3b8;
	--fer-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
	--fer-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

body, .elementor-kit-1 {
	font-family: var(--fer-font-sans);
}

/* ===== Mono labels (eyebrows) ===== */
.fer-eyebrow,
.fer-mono,
.fer-svc-num,
.fer-svc-tag,
.fer-stat-label,
.fer-contact-label,
.fer-form-header,
.fer-nav-phone,
.fer-footer-copy,
.fer-caption {
	font-family: var(--fer-font-mono);
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/* ===== Nav ===== */
.fer-nav {
	position: sticky !important;
	top: 0;
	z-index: 50 !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(40, 0, 127, 0.1);
}
.fer-nav-logo img { height: 50px !important; width: auto; }
.fer-nav .elementor-widget-text-editor {
	width: auto !important;
	margin-left: auto;
}
.fer-nav-phones {
	display: flex;
	align-items: center !important;
	align-self: center !important;
	gap: 1.5rem;
	height: auto !important;
}
.fer-nav-phone {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1;
	align-self: center !important;
	color: var(--fer-brand);
	text-decoration: none;
	transition: color 0.2s;
}
.fer-nav-phone:hover { color: var(--fer-brand-dark); }

/* ===== Hero ===== */
.fer-hero {
	position: relative;
	overflow: hidden;
	color: var(--fer-foreground);
}
.fer-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(46, 0, 142, 0.7), transparent 55%, rgba(46, 0, 142, 0.3));
	pointer-events: none;
}
.fer-hero > .elementor-container,
.fer-hero > .e-con,
.fer-hero .elementor-widget {
	position: relative;
	z-index: 2;
}
.fer-hero-eyebrow {
	font-family: var(--fer-font-mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(248, 250, 252, 0.7);
	margin-bottom: 1rem;
}
.fer-hero-coords {
	font-family: var(--fer-font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	color: rgba(248, 250, 252, 0.4);
	margin-bottom: 1.5rem;
}
.fer-hero-title .elementor-heading-title {
	color: var(--fer-foreground) !important;
	font-family: var(--fer-font-sans) !important;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.fer-hero-sub {
	color: rgba(248, 250, 252, 0.8);
	max-width: 28rem;
}

/* ===== Buttons ===== */
.fer-btn .elementor-button {
	display: inline-block;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.fer-btn:hover .elementor-button { transform: translateY(-2px); }
.fer-btn-primary .elementor-button {
	background: var(--fer-foreground) !important;
	color: var(--fer-brand) !important;
	padding: 1rem 1.5rem;
	box-shadow: 0 10px 15px -3px rgba(248, 250, 252, 0.1);
	border-radius: 0;
}
.fer-btn-primary:hover .elementor-button {
	background: #fff !important;
	color: var(--fer-brand) !important;
	box-shadow: 0 20px 25px -5px rgba(248, 250, 252, 0.2);
}
.fer-btn-ghost .elementor-button {
	border: 1px solid rgba(248, 250, 252, 0.3) !important;
	color: var(--fer-foreground) !important;
	padding: 1rem 1.5rem;
	background: transparent !important;
	border-radius: 0;
}
.fer-btn-ghost:hover .elementor-button {
	border-color: rgba(248, 250, 252, 0.5) !important;
	background: rgba(248, 250, 252, 0.15) !important;
	color: var(--fer-foreground) !important;
}

/* ===== About (01 Firmast) ===== */
.fer-about-label {
	font-family: var(--fer-font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(40, 0, 127, 0.6);
}
.fer-about-title {
	color: var(--fer-brand);
	font-family: var(--fer-font-sans);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.fer-about-text { color: var(--fer-slate-600); font-family: var(--fer-font-sans); line-height: 1.625; }
.fer-about-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4rem;
	align-items: start;
}
.fer-about-body { max-width: 42rem; }
.fer-about-body .fer-about-title { margin-bottom: 1.5rem; }
.fer-about-body .fer-about-text { margin-bottom: 1rem; }
.fer-about-body .fer-about-text:last-of-type { margin-bottom: 2.5rem; }
.fer-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgba(40, 0, 127, 0.1);
	border-bottom: 1px solid rgba(40, 0, 127, 0.1);
	font-family: var(--fer-font-mono);
}
.fer-stat { padding: 1rem 1.25rem; }
.fer-stat + .fer-stat { border-left: 1px solid rgba(40, 0, 127, 0.1); }
.fer-stat:first-child { padding-left: 0; }
.fer-stat:last-child { padding-right: 0; }
.fer-stat-num {
	font-size: 1.875rem;
	font-weight: 500;
	color: var(--fer-brand);
	line-height: 1.2;
}
.fer-stat-label {
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--fer-slate-500);
	margin-top: 0.25rem;
}

/* ===== Services (02 Teenused) ===== */
.fer-services {
	background: var(--fer-brand);
	color: var(--fer-foreground);
}
.fer-services-label { color: rgba(248, 250, 252, 0.5); font-size: 10px; letter-spacing: 0.2em; }
.fer-services-tag { color: rgba(248, 250, 252, 0.3); font-size: 10px; letter-spacing: 0.2em; }
.fer-services-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 2.5rem;
	font-family: var(--fer-font-mono);
	text-transform: uppercase;
}
.fer-svc-row {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 2rem;
	align-items: baseline;
	border-top: 1px solid rgba(248, 250, 252, 0.1);
	padding: 2rem 0;
}
.fer-svc-row:last-child { border-bottom: 1px solid rgba(248, 250, 252, 0.1); }
.fer-svc-num { font-size: 12px; color: rgba(248, 250, 252, 0.4); }
.fer-svc-title { color: var(--fer-foreground); font-family: var(--fer-font-sans); font-weight: 700; font-size: 1.25rem; text-wrap: balance; margin-bottom: 0.5rem; }
.fer-svc-text { color: rgba(248, 250, 252, 0.6); font-family: var(--fer-font-sans); font-size: 14px; line-height: 1.625; max-width: 36rem; }
.fer-svc-tag { font-size: 10px; color: rgba(248, 250, 252, 0.3); }

/* ===== Banner ===== */
.fer-banner { position: relative; }
.fer-banner img { width: 100%; height: 100%; object-fit: cover; }
.fer-banner .elementor-widget-container { position: static; }
.fer-caption,
.elementor-widget-text-editor.fer-caption .elementor-widget-container {
	position: static;
	background: none;
	padding: 0;
	z-index: auto;
}
.fer-caption {
	position: absolute;
	bottom: 1rem;
	left: 1.5rem;
	background: rgba(40, 0, 127, 0.85);
	padding: 0.5rem 0.75rem;
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--fer-foreground);
	backdrop-filter: blur(4px);
	z-index: 2;
}

/* ===== Contact ===== */
.fer-contact { background: var(--fer-surface); }
.fer-contact-label { color: rgba(40, 0, 127, 0.6); font-size: 10px; letter-spacing: 0.2em; }
.fer-contact-title .elementor-heading-title {
	color: var(--fer-brand) !important;
	font-family: var(--fer-font-sans) !important;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.fer-contact-block-label {
	font-family: var(--fer-font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fer-slate-500);
	margin-bottom: 0.5rem;
}
.fer-contact-address {
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 600;
	color: var(--fer-brand);
	font-style: normal;
}
.fer-contact-phone {
	display: block;
	font-weight: 600;
	color: var(--fer-brand);
	text-decoration: none;
	transition: color 0.2s;
}
.fer-contact-phone:hover { color: var(--fer-brand-dark); }
.fer-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 3rem;
}
.fer-contact-phones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

/* ===== CF7 form styling (match mockup) ===== */
.fer-form-card {
	border: 1px solid rgba(40, 0, 127, 0.2);
	background: #fff;
	padding: 2.5rem;
}
.fer-form-header {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: rgba(40, 0, 127, 0.6);
	margin-bottom: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.fer-form-header .fer-form-note { color: var(--fer-slate-400); }
.wpcf7 form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.wpcf7 label {
	display: block;
	font-family: var(--fer-font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fer-slate-500);
	margin-bottom: 0.5rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	background: #fff;
	padding: 0.75rem 1rem;
	font-size: 14px;
	font-family: var(--fer-font-sans);
	color: #0f172a;
	transition: border-color 0.2s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--fer-brand);
	outline: none;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--fer-slate-400); }
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 .wpcf7-submit,
.wpcf7 input[type="submit"] {
	grid-column: 1 / -1;
	justify-self: start;
	background: var(--fer-brand);
	color: var(--fer-foreground);
	border: none;
	padding: 1.25rem 4rem;
	font-family: var(--fer-font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 20px 25px -5px rgba(40, 0, 127, 0.2);
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--fer-brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 25px 50px -12px rgba(40, 0, 127, 0.3);
}
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { font-size: 12px; color: #dc2626; margin-top: 0.25rem; }
.wpcf7-response-output { margin: 1.5rem 0 0 !important; }

/* ===== Footer ===== */
.fer-footer { border-top: 1px solid #e2e8f0; background: #fff; }
.fer-footer-logo img { height: 50px !important; width: auto; }
.fer-footer-copy {
	font-size: 10px;
	line-height: 1.625;
	letter-spacing: 0.05em;
	color: var(--fer-slate-400);
}

/* ===== Animations ===== */
@keyframes fer-fade-up {
	0% { opacity: 0; transform: translateY(20px); }
	100% { opacity: 1; transform: translateY(0); }
}
.fer-animate { animation: fer-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ===== Mobile ===== */
@media (max-width: 767px) {
	.fer-nav { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
	.fer-nav-phone-desktop { display: none; }
	.fer-hero > .e-con-inner, .fer-hero > .e-con {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}
	.fer-svc-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	.fer-svc-body { order: 2; }
	.fer-svc-num { order: 1; }
	.fer-svc-tag { order: 3; margin-top: 0.5rem; }
	.fer-about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.fer-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
	.fer-services-head { flex-direction: column; gap: 0.5rem; }
	.wpcf7 form { grid-template-columns: 1fr; }
	.fer-stats { grid-template-columns: repeat(3, 1fr); }
	.fer-stat { padding: 0.75rem; }
	.fer-stat:first-child { padding-left: 0.75rem; }
	.fer-stat:last-child { padding-right: 0.75rem; }
	.fer-hero-title .elementor-heading-title { font-size: 2.25rem !important; }
	.fer-form-card { padding: 1.5rem; }
	.wpcf7 input[type="submit"] { width: 100%; }
}
