/*
Theme Name: Lami Studio
Theme URI: https://lamistudio.cz/
Author: Lami Studio
Author URI: https://lamistudio.cz/
Description: Personal portfolio theme for Lami Studio.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lami-studio
*/

:root {
	--ls-ink: #12151c;
	--ls-ink-soft: #2b303a;
	--ls-muted: #606875;
	--ls-paper: #f7f3ec;
	--ls-surface: #fffdf8;
	--ls-line: #ddd5c8;
	--ls-blue: #1f76ff;
	--ls-blue-dark: #0e4fc8;
	--ls-sage: #6c8879;
	--ls-coral: #da6b50;
	--ls-shadow: 0 24px 70px rgba(18, 21, 28, 0.14);
	--ls-radius: 8px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ls-paper);
	color: var(--ls-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	letter-spacing: 0;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	position: fixed;
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(18px, 5vw, 58px);
	background: rgba(247, 243, 236, 0.88);
	border-bottom: 1px solid rgba(221, 213, 200, 0.72);
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	white-space: nowrap;
}

.brand__mark {
	width: 34px;
	height: 34px;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 3vw, 34px);
	color: var(--ls-muted);
	font-size: 14px;
	font-weight: 650;
}

.main-nav a:hover {
	color: var(--ls-ink);
}

.nav-button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid var(--ls-ink);
	border-radius: var(--ls-radius);
	background: var(--ls-ink);
	color: var(--ls-surface);
	font-weight: 800;
	line-height: 1.1;
	transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-button {
	min-height: 40px;
	padding: 10px 14px;
}

.button:hover,
.nav-button:hover {
	transform: translateY(-1px);
	background: var(--ls-blue);
	border-color: var(--ls-blue);
	color: #fff;
}

.button--secondary {
	background: rgba(255, 253, 248, 0.78);
	color: var(--ls-ink);
}

.ls-icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ls-blue);
}

.ls-icon svg {
	width: 42px;
	height: 42px;
}

.ls-icon path,
.ls-icon circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero {
	position: relative;
	min-height: 92vh;
	display: grid;
	align-items: end;
	overflow: hidden;
	padding: 114px clamp(18px, 5vw, 58px) 38px;
	background: #e9e0d2;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(247, 243, 236, 0.99) 0%, rgba(247, 243, 236, 0.91) 42%, rgba(247, 243, 236, 0.42) 74%, rgba(247, 243, 236, 0.16) 100%),
		url("assets/images/hero-workspace.svg") center right / cover no-repeat;
}

.hero__content {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--ls-blue-dark);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

.hero h1 {
	margin-bottom: 24px;
	max-width: 760px;
	font-size: clamp(48px, 8vw, 104px);
	line-height: 0.94;
	letter-spacing: 0;
}

.hero__copy {
	margin-bottom: 0;
	max-width: 590px;
	color: #343943;
	font-size: clamp(18px, 2.2vw, 23px);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.hero__metrics {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	width: min(920px, 100%);
	margin-top: 70px;
	border: 1px solid rgba(18, 21, 28, 0.16);
	background: rgba(18, 21, 28, 0.16);
}

.metric {
	min-height: 88px;
	padding: 18px;
	background: rgba(255, 253, 248, 0.84);
	backdrop-filter: blur(12px);
}

.metric .ls-icon {
	margin-bottom: 10px;
}

.metric strong {
	display: block;
	font-size: 22px;
	line-height: 1.1;
}

.metric span {
	display: block;
	margin-top: 5px;
	color: var(--ls-muted);
	font-size: 13px;
}

.section {
	padding: clamp(58px, 9vw, 118px) clamp(18px, 5vw, 58px);
}

.section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto 32px;
}

.section__head h2,
.contact__text h2 {
	margin-bottom: 0;
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1.02;
	letter-spacing: 0;
}

.section__head p {
	max-width: 430px;
	margin-bottom: 0;
	color: var(--ls-muted);
	font-size: 17px;
}

.work-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
}

.work-grid--single {
	grid-template-columns: minmax(0, 620px);
	justify-content: start;
}

.work-card {
	overflow: hidden;
	border: 1px solid var(--ls-line);
	border-radius: var(--ls-radius);
	background: var(--ls-surface);
	box-shadow: 0 10px 28px rgba(18, 21, 28, 0.06);
}

.work-card__image {
	aspect-ratio: 4 / 3;
	padding: 14px;
	border-bottom: 1px solid var(--ls-line);
	background: #dfe7df;
}

.work-card__preview {
	width: 100%;
	height: 100%;
	border: 1px solid rgba(18, 21, 28, 0.16);
	border-radius: 7px;
	object-fit: cover;
	object-position: top center;
	background: var(--ls-surface);
}

.work-card__image--dark {
	background: #202733;
}

.work-card__image--warm {
	background: #e7e0d4;
}

.browser-frame {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(18, 21, 28, 0.16);
	border-radius: 7px;
	background: var(--ls-surface);
}

.browser-frame__bar {
	height: 26px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	border-bottom: 1px solid rgba(18, 21, 28, 0.12);
	background: #f1eee8;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ls-coral);
}

.dot:nth-child(2) {
	background: #d4b556;
}

.dot:nth-child(3) {
	background: var(--ls-sage);
}

.browser-frame__layout {
	height: calc(100% - 26px);
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 12px;
	padding: 14px;
}

.preview-main,
.preview-side,
.preview-line,
.preview-button {
	border-radius: 6px;
}

.preview-main {
	background: var(--ls-ink);
}

.preview-side {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 10px;
	background: #edf2f0;
}

.preview-line {
	height: 10px;
	background: #a7b8ae;
}

.preview-line--short {
	width: 68%;
	background: var(--ls-coral);
}

.preview-button {
	width: 78px;
	height: 24px;
	background: var(--ls-blue);
}

.work-card__body {
	padding: 18px;
}

.work-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.work-card__title .ls-icon {
	width: 44px;
	height: 44px;
	flex-basis: 44px;
	background: transparent;
}

.work-card__title .ls-icon svg {
	width: 32px;
	height: 32px;
}

.work-card h3 {
	margin-bottom: 0;
	font-size: 20px;
	line-height: 1.2;
}

.work-card p {
	margin-bottom: 0;
	color: var(--ls-muted);
	font-size: 14px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.tag {
	border: 1px solid var(--ls-line);
	border-radius: 999px;
	padding: 5px 8px;
	background: #fbf9f3;
	color: #505762;
	font-size: 12px;
}

.work-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: var(--ls-blue-dark);
	font-size: 14px;
	font-weight: 850;
}

.work-card__link:hover {
	color: var(--ls-ink);
}

.process {
	padding: 0;
	background: #0f1522;
	color: var(--ls-surface);
}

.process-bar {
	display: grid;
	grid-template-columns: minmax(160px, 0.78fr) minmax(520px, 2.7fr) minmax(230px, 0.95fr);
	gap: clamp(24px, 3.5vw, 48px);
	align-items: start;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(34px, 4.4vw, 58px) clamp(24px, 5vw, 72px);
	background:
		radial-gradient(circle at 8% 0%, rgba(31, 118, 255, 0.18), transparent 34%),
		linear-gradient(135deg, #0f1522 0%, #12151c 54%, #070b12 100%);
}

.process-bar__head .eyebrow {
	margin-bottom: 8px;
	color: var(--ls-blue);
}

.process-bar__head h2 {
	margin-bottom: 0;
	font-size: clamp(26px, 2.2vw, 36px);
	line-height: 1.08;
}

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.process-step {
	position: relative;
	min-width: 0;
}

.process-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 30px;
	left: 58px;
	right: -18px;
	border-top: 1px dashed rgba(255, 253, 248, 0.24);
}

.process-step .ls-icon {
	position: relative;
	z-index: 1;
	width: 50px;
	height: 50px;
	margin-bottom: 16px;
	color: var(--ls-blue);
}

.process-step .ls-icon svg {
	width: 40px;
	height: 40px;
}

.process-step span {
	display: block;
	margin-bottom: 8px;
	color: var(--ls-surface);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.process-step p,
.process-cta p {
	margin-bottom: 0;
	color: rgba(255, 253, 248, 0.72);
	font-size: 13px;
	line-height: 1.45;
}

.process-cta {
	display: flex;
	gap: 16px;
	min-height: 120px;
	padding-left: clamp(22px, 3vw, 34px);
	border-left: 1px solid rgba(255, 253, 248, 0.22);
}

.process-cta .ls-icon {
	width: 54px;
	height: 54px;
	flex-basis: 54px;
	border-radius: 8px;
	background: var(--ls-blue);
	color: #fff;
	box-shadow: 0 14px 36px rgba(31, 118, 255, 0.34);
}

.process-cta .ls-icon svg {
	width: 32px;
	height: 32px;
}

.process-cta h3 {
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 1.25;
}

.process-cta a {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: 16px;
	color: #78a8ff;
	font-size: 14px;
	font-weight: 800;
}

.process-cta a:hover {
	color: #fff;
}

@media (max-width: 1120px) {
	.process-bar {
		grid-template-columns: 1fr;
	}

	.process-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.process-step:not(:last-child)::after {
		display: none;
	}

	.process-cta {
		min-height: auto;
		padding: 24px 0 0;
		border-top: 1px solid rgba(255, 253, 248, 0.22);
		border-left: 0;
	}
}

.contact {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 34px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
}

.contact__text h2 {
	font-size: clamp(38px, 5vw, 72px);
}

.contact__text p {
	max-width: 620px;
	margin: 20px 0 0;
	color: var(--ls-muted);
	font-size: 18px;
}

.contact-list {
	max-width: 560px;
	margin-top: 34px;
	border-top: 1px solid var(--ls-line);
}

.contact-panel {
	border: 1px solid var(--ls-line);
	border-radius: var(--ls-radius);
	padding: 24px;
	background: var(--ls-surface);
	box-shadow: var(--ls-shadow);
}

.contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 0;
	border-bottom: 1px solid var(--ls-line);
}

.contact-row:last-child {
	border-bottom: 0;
}

.contact-row span {
	margin-right: auto;
	color: var(--ls-muted);
	font-size: 14px;
}

.contact-row strong {
	text-align: right;
}

.contact-form-panel h3 {
	margin-bottom: 18px;
	font-size: 28px;
	line-height: 1.1;
}

.contact-form {
	display: grid;
	gap: 14px;
}

.form-field {
	margin: 0;
}

.form-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--ls-ink);
	font-size: 13px;
	font-weight: 800;
}

.form-field input,
.form-field textarea {
	width: 100%;
	border: 1px solid var(--ls-line);
	border-radius: var(--ls-radius);
	padding: 13px 14px;
	background: #fbf9f3;
	color: var(--ls-ink);
	font: inherit;
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
	min-height: 138px;
	resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--ls-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(31, 118, 255, 0.14);
}

.form-field--hidden {
	position: absolute;
	left: -9999px;
}

.form-message {
	margin: 0 0 16px;
	border-radius: var(--ls-radius);
	padding: 12px 14px;
	font-size: 14px;
}

.form-message--success {
	background: rgba(108, 136, 121, 0.14);
	color: #365a49;
}

.form-message--error {
	background: rgba(218, 107, 80, 0.14);
	color: #8c3b28;
}

.contact-form .button {
	width: 100%;
	margin-top: 4px;
	border-color: var(--ls-blue);
	background: var(--ls-blue);
}

.contact-form .button:hover {
	border-color: var(--ls-ink);
	background: var(--ls-ink);
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px clamp(18px, 5vw, 58px);
	border-top: 1px solid var(--ls-line);
	color: var(--ls-muted);
	font-size: 14px;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ls-ink);
}

.footer-brand__mark {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
}

.footer-brand strong,
.footer-brand small {
	display: block;
}

.footer-brand strong {
	font-size: 16px;
	line-height: 1.15;
}

.footer-brand small {
	margin-top: 2px;
	color: var(--ls-muted);
	font-size: 12px;
}

.footer-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 18px;
}

@media (max-width: 860px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-header {
		align-items: flex-start;
	}

	.main-nav a:not(.nav-button) {
		display: none;
	}

	.hero {
		min-height: 880px;
		align-items: start;
	}

	.hero::before {
		background:
			linear-gradient(180deg, rgba(247, 243, 236, 0.99) 0%, rgba(247, 243, 236, 0.93) 50%, rgba(247, 243, 236, 0.36) 100%),
			url("assets/images/hero-workspace.svg") center bottom / cover no-repeat;
	}

	.hero__metrics,
	.work-grid,
	.contact {
		grid-template-columns: 1fr;
	}

	.section__head {
		display: block;
	}

	.section__head p {
		margin-top: 14px;
	}

	.process {
		padding-right: 0;
		padding-left: 0;
	}

	.process-bar {
		padding: 36px clamp(18px, 5vw, 34px);
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-meta {
		justify-content: flex-start;
	}
}

@media (max-width: 520px) {
	.brand {
		font-size: 16px;
	}

	.nav-button {
		padding: 9px 11px;
	}

	.hero {
		min-height: 820px;
	}

	.process-steps {
		grid-template-columns: 1fr;
	}

	.process-step {
		display: grid;
		grid-template-columns: 58px 1fr;
		column-gap: 14px;
		align-items: start;
	}

	.process-step .ls-icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.process-cta {
		display: grid;
		grid-template-columns: 58px 1fr;
	}

	.hero__actions .button {
		width: 100%;
	}

	.metric {
		min-height: 74px;
	}

	.contact-row {
		display: block;
	}

	.contact-row strong {
		display: block;
		margin-top: 3px;
		text-align: left;
	}
}
