﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
	--background: #f5f7fb;
	--foreground: #0d1b2a;
	--card: #ffffff;
	--muted: #ecf1f8;
	--muted-foreground: #526581;
	--border: #d6e0ec;
	--primary: #0f2744;
	--primary-foreground: #f6f9ff;
	--accent: #0d9488;
	--ring: rgba(15, 39, 68, 0.2);
	--radius: 14px;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--duration-fast: 140ms;
	--duration-base: 260ms;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(1300px 700px at 8% -10%, rgba(13, 148, 136, 0.1), transparent 70%),
		radial-gradient(1100px 620px at 100% 10%, rgba(59, 130, 246, 0.09), transparent 72%),
		var(--background);
	color: var(--foreground);
	font-family: Manrope, 'Segoe UI', Tahoma, sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	border-radius: 10px;
	background: var(--primary);
	color: var(--primary-foreground);
	padding: 10px 14px;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--border);
	background: rgba(245, 247, 251, 0.88);
	backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand,
.nav,
.actions,
.tag-row,
.admin-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand {
	font-weight: 700;
}

.brand-text {
	display: grid;
	gap: 2px;
}

.brand-text small {
	color: var(--muted-foreground);
	font-size: 0.73rem;
	font-weight: 600;
}

.brand-mark,
.number {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(145deg, #12335b, #0f2744);
	color: #e6f4ff;
	font-size: 0.9rem;
	font-weight: 800;
}

.nav {
	gap: 22px;
}

.nav a,
.muted-label,
.section-heading p,
.footer-inner,
.admin-muted {
	color: var(--muted-foreground);
}

.nav a {
	position: relative;
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 140ms ease;
}

.nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
	background: linear-gradient(90deg, var(--accent), #38bdf8);
	transition: transform 180ms ease;
}

.nav a:hover {
	color: var(--foreground);
}

.nav a:hover::after {
	transform: scaleX(1);
}

.button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: linear-gradient(180deg, #14375f, #0f2744);
	color: var(--primary-foreground);
	padding: 10px 18px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -20px rgba(15, 39, 68, 0.9);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav a:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--ring);
}

.button-outline {
	border-color: var(--border);
	background: var(--card);
	color: var(--foreground);
}

.button-outline:hover {
	background: #f0f5fc;
}

.button-sm {
	min-height: 36px;
	padding: 8px 12px;
	font-size: 0.8rem;
}

.hero {
	position: relative;
	overflow: hidden;
}

.dot-grid {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: radial-gradient(rgba(15, 39, 68, 0.16) 1px, transparent 1px);
	background-size: 22px 22px;
}

.hero-grid {
	position: relative;
	display: grid;
	min-height: calc(100vh - 72px);
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 48px;
	padding: 70px 0;
}

.hero-copy {
	max-width: 760px;
}

.hero h1,
.section-heading h2,
.admin-content h1 {
	margin: 16px 0 0;
	letter-spacing: -0.03em;
	line-height: 1.04;
}

.hero h1,
.section-heading h2,
.admin-content h1 {
	font-family: Fraunces, Georgia, 'Times New Roman', serif;
}

.hero h1 {
	font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.lead {
	max-width: 680px;
	margin: 24px 0 0;
	color: var(--muted-foreground);
	font-size: 1.1rem;
	line-height: 1.75;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.hero-trust span {
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	padding: 6px 12px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #35516f;
}

.badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	border-radius: 999px;
	background: #e4edf9;
	color: #163453;
	padding: 5px 11px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.badge-outline {
	border: 1px solid var(--border);
	background: transparent;
}

.card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 22px 46px -34px rgba(17, 34, 68, 0.45);
}

.hero-card {
	padding: 24px;
}

.focus-card {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(245, 250, 255, 0.8);
	padding: 20px;
}

.focus-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
	padding-bottom: 16px;
}

.focus-head p {
	margin: 0 0 4px;
	color: var(--muted-foreground);
	font-size: 0.85rem;
}

.status-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.15);
}

.stats-grid {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.stat {
	display: flex;
	align-items: end;
	justify-content: space-between;
	border-radius: 12px;
	background: #fff;
	padding: 16px;
}

.stat strong {
	font-size: 1.8rem;
}

.stat span {
	max-width: 150px;
	color: var(--muted-foreground);
	text-align: right;
	font-size: 0.84rem;
}

.section {
	padding: 82px 0;
}

.section-border {
	border-bottom: 1px solid var(--border);
}

.section-border-top {
	border-top: 1px solid var(--border);
}

.section-muted {
	background: rgba(240, 245, 252, 0.64);
}

.section-heading {
	max-width: 700px;
	margin-bottom: 40px;
}

.section-heading.compact {
	margin-bottom: 0;
}

.section-heading h2 {
	font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.section-heading p:not(.badge) {
	margin: 14px 0 0;
	line-height: 1.7;
}

.section-subtext {
	max-width: 62ch;
	color: #3d5774;
	font-weight: 600;
}

.card-grid {
	display: grid;
	gap: 20px;
}

.card-grid.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.service-card {
	padding: 24px;
	transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.project-card:hover,
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 44px -34px rgba(17, 34, 68, 0.52);
}

.project-card h3,
.service-card h3 {
	margin: 10px 0 0;
	font-size: 1.2rem;
}

.project-media {
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 14px;
	aspect-ratio: 16 / 10;
	background: #dbe5f2;
}

.project-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.project-link {
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 700;
}

.project-card p,
.service-card p {
	color: var(--muted-foreground);
	line-height: 1.65;
}

.muted-label {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tag-row {
	flex-wrap: wrap;
	margin-top: 20px;
}

.tag {
	border-radius: 999px;
	background: var(--muted);
	padding: 5px 10px;
	font-size: 0.74rem;
	font-weight: 700;
}

.split-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.gallery-grid {
	display: grid;
	grid-auto-rows: 220px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.gallery-card {
	overflow: hidden;
	border-radius: var(--radius);
}

.gallery-card-0 {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-card-1 {
	grid-row: span 2;
}

.gallery-card-3 {
	grid-column: span 2;
}

.mockup {
	--mockup-bg: #020617;
	position: relative;
	display: flex;
	min-height: 100%;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--mockup-bg);
	color: white;
	padding: 20px;
}

.mockup-window {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.1);
	padding: 14px;
}

.window-dots {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.window-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
}

.line,
.mockup-blocks span {
	display: block;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.22);
}

.line {
	width: 72%;
	height: 10px;
	margin-top: 8px;
}

.line.wide {
	width: 88%;
}

.line.short {
	width: 46%;
}

.mockup-blocks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 20px 0;
}

.mockup-blocks span {
	min-height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.08);
}

.gallery-caption p {
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.78rem;
	font-weight: 700;
}

.gallery-caption h3 {
	margin: 8px 0 0;
}

.gallery-caption span {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.74);
	line-height: 1.55;
}

.gallery-photo {
	flex: 1;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-photo img {
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
	display: block;
}

.stack-layout,
.contact-layout {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 48px;
	align-items: start;
}

.stack-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.stack-grid span {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.86);
	padding: 18px 12px;
	text-align: center;
	font-size: 0.88rem;
	font-weight: 700;
}

.contact-layout {
	padding: 80px 0;
}

.contact-details {
	margin-top: 28px;
	color: var(--muted-foreground);
}

.contact-details a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-form {
	display: grid;
	gap: 16px;
	padding: 24px;
}

.form-row,
.admin-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

label {
	display: grid;
	gap: 8px;
	font-size: 0.86rem;
	font-weight: 700;
}

input,
textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	color: var(--foreground);
	font: inherit;
	padding: 13px 14px;
	outline: none;
}

textarea {
	resize: vertical;
}

input:focus,
textarea:focus {
	border-color: #1f4e80;
	box-shadow: 0 0 0 4px var(--ring);
}

.site-footer {
	border-top: 1px solid var(--border);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

[data-reveal] .card,
[data-reveal] .mockup,
[data-reveal] .stack-grid span {
	transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

[data-reveal].is-visible .card:hover,
[data-reveal].is-visible .mockup:hover,
[data-reveal].is-visible .stack-grid span:hover {
	transform: translateY(-3px);
	box-shadow: 0 26px 42px -34px rgba(17, 34, 68, 0.5);
}

.admin-body {
	background:
		radial-gradient(1200px 500px at 8% -20%, rgba(13, 148, 136, 0.16), transparent 65%),
		radial-gradient(900px 440px at 92% 0%, rgba(14, 165, 233, 0.14), transparent 62%),
		linear-gradient(180deg, #f7fbff 0%, #eff5fd 100%);
}

.admin-login {
	max-width: 440px;
	margin: 8vh auto 0;
	padding: 30px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(10px);
	box-shadow: 0 24px 44px -28px rgba(15, 23, 42, 0.35);
}

.admin-form {
	display: grid;
	gap: 20px;
}

.admin-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 12px;
}

.admin-sidebar {
	position: sticky;
	top: 12px;
	min-height: calc(100vh - 24px);
	padding: 18px 14px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
}

.admin-sidebar-title {
	margin: 0 0 10px;
	color: var(--muted-foreground);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.admin-site-name {
	margin: 0 0 14px;
	padding: 2px 0 12px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.3);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.admin-sidebar-nav {
	display: grid;
	gap: 10px;
}

.admin-sidebar-nav a {
	position: relative;
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
	padding: 10px 12px;
	font-size: 0.84rem;
	font-weight: 700;
	transition: border-color 140ms ease, transform 140ms ease;
}

.admin-sidebar-nav a:hover {
	transform: translateY(-1px);
	border-color: rgba(14, 116, 144, 0.42);
}

.admin-sidebar-nav a[aria-current='page'] {
	border-color: rgba(14, 116, 144, 0.45);
	background: linear-gradient(90deg, rgba(20, 184, 166, 0.16), rgba(56, 189, 248, 0.15));
	color: #0c4a6e;
}

.admin-sidebar-actions {
	display: grid;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-sidebar-actions .button {
	width: 100%;
}

.admin-content {
	min-width: 0;
}

.admin-page-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	padding: 22px;
}

.admin-page-head h1 {
	margin-top: 10px;
	font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.admin-page-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.admin-panel {
	margin-top: 16px;
	padding: 24px;
	border: 1px solid rgba(148, 163, 184, 0.26);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
}

.admin-panel h2 {
	margin: 0 0 18px;
	font-size: 1.16rem;
}

.admin-panel h3 {
	margin: 26px 0 12px;
	font-size: 1rem;
}

.repeatable-grid {
	display: grid;
	gap: 14px;
}

.repeatable-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 22px 0 12px;
}

.repeatable-item {
	padding: 16px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.95);
}

.repeatable-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.repeatable-item-title {
	margin: 0 0 10px;
	color: var(--muted-foreground);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.notice,
.alert {
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 700;
}

.notice {
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #065f46;
}

.alert {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.sticky-save {
	position: sticky;
	bottom: 18px;
	display: flex;
	justify-content: end;
	margin-top: 20px;
	padding-top: 6px;
	z-index: 5;
}

.sticky-save .button {
	min-width: 220px;
	border-radius: 12px;
}

.admin-image-preview {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.admin-image-preview img {
	width: min(100%, 360px);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.35);
}

.field-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84rem;
	color: var(--muted-foreground);
}

.field-inline input[type='checkbox'] {
	width: auto;
	padding: 0;
	box-shadow: none;
}

@media (max-width: 980px) {
	.nav {
		display: none;
	}

	.hero-grid,
	.stack-layout,
	.contact-layout,
	.card-grid.three,
	.form-row,
	.admin-grid {
		grid-template-columns: 1fr;
	}

	.gallery-grid {
		grid-auto-rows: auto;
		grid-template-columns: 1fr;
	}

	.gallery-card,
	.gallery-card-0,
	.gallery-card-1,
	.gallery-card-3 {
		grid-column: auto;
		grid-row: auto;
	}

	.mockup {
		min-height: 320px;
	}

	.split-heading,
	.admin-page-head {
		align-items: start;
		flex-direction: column;
	}

	.admin-layout {
		grid-template-columns: 1fr;
	}

	.admin-sidebar {
		position: static;
		min-height: auto;
	}

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

@media (max-width: 560px) {
	.header-inner,
	.footer-inner,
	.actions,
	.admin-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.header-inner {
		padding: 14px 0;
	}

	.brand,
	.header-inner .button {
		width: 100%;
		justify-content: space-between;
	}

	.hero-grid,
	.section,
	.contact-layout {
		padding: 56px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
