@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/dmsans.woff2') format('woff2');
	font-display: swap;
}

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/dmsans.woff2') format('woff2');
	font-display: swap;
}

@font-face {
	font-family: 'DM Serif Display';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/dmserifdisplay.woff2') format('woff2');
	font-display: swap;
}

@font-face {
	font-family: 'DM Serif Display';
	font-style: italic;
	font-weight: 400;
	src: url('../fonts/dmserifdisplay-italic.woff2') format('woff2');
	font-display: swap;
}

:root {
	--color-bg: #f5f8fc;
	--color-surface: #eaf1f8;
	--color-card: #ffffff;
	--color-primary: #6b9ebd;
	--color-primary-d: #4a7c9e;
	--color-primary-l: #a8c8dd;
	--color-primary-xl: #d0e2ef;
	--color-text: #2c3e4f;
	--color-text-l: #5a6f82;
	--color-heading: #1a2d3d;
	--color-accent: #d4a373;

	--font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
	--font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--max-width: 1100px;
	--nav-height: 64px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-height);
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary-d);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--color-heading);
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Navigation ── */

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-height);
	background: rgba(245, 248, 252, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	border-bottom: 1px solid var(--color-primary-xl);
}

.nav-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-heading);
    text-decoration: none;
    line-height: 0;
}

.logo-mark .logo-svg {
    width: auto;
    height: 36px;
}

.nav-links {
	display: flex;
	gap: 32px;
	list-style: none;
}

.nav-links a {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	position: relative;
	padding-bottom: 4px;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: width 0.3s;
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--color-heading);
	cursor: pointer;
	padding: 4px;
}

/* ── Hero ── */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--nav-height) + 40px) 24px 80px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
	    radial-gradient(ellipse 80% 60% at 50% 30%, var(--color-primary-xl) 0%, transparent 70%),
	    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(212, 163, 115, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.hero-logo img {
	width: 240px;
	height: auto;
	margin: 0 auto 24px;
}

.hero h1 {
	font-family: var(--font-heading);
	font-size: clamp(32px, 5vw, 52px);
	color: var(--color-heading);
	line-height: 1.15;
	margin-bottom: 16px;
}

.hero p {
	font-size: clamp(16px, 2vw, 20px);
	color: var(--color-text-l);
	margin-bottom: 40px;
	line-height: 1.6;
}

.btn {
	display: inline-block;
	padding: 14px 36px;
	background: var(--color-primary-d);
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	border-radius: 6px;
	transition: background 0.25s, transform 0.2s;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background: var(--color-heading);
	color: #fff;
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--color-primary-d);
	color: var(--color-primary-d);
}

.btn-outline:hover {
	background: var(--color-primary-d);
	color: #fff;
}

/* ── Sections ── */

.section {
	padding: 100px 24px;
}

.section-alt {
	background: var(--color-surface);
}

.section-header {
	text-align: center;
	margin-bottom: 64px;
}

.section-header h2 {
	font-family: var(--font-heading);
	font-size: clamp(28px, 3.5vw, 38px);
	color: var(--color-heading);
	margin-bottom: 12px;
}

.section-header p {
	color: var(--color-text-l);
	font-size: 17px;
	max-width: 600px;
	margin: 0 auto;
}

.divider {
	width: 48px;
	height: 3px;
	background: var(--color-primary);
	margin: 16px auto 0;
	border-radius: 2px;
}

/* ── Services ── */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.service-card {
	background: var(--color-card);
	border-radius: 12px;
	padding: 32px 28px;
	transition: box-shadow 0.3s, transform 0.3s;
	border: 1px solid rgba(107, 158, 189, 0.12);
}

.service-card:hover {
	box-shadow: 0 8px 32px rgba(74, 124, 158, 0.1);
	transform: translateY(-4px);
}

.icon {
	width: 44px;
	height: 44px;
	margin-bottom: 20px;
	color: var(--color-primary-d);
}

.service-card h3 {
	font-family: var(--font-heading);
	font-size: 20px;
	color: var(--color-heading);
	margin-bottom: 8px;
}

.service-card p {
	font-size: 14px;
	color: var(--color-text-l);
	line-height: 1.6;
}

/* ── About ── */

.about-content {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.about-text h2 {
	font-family: var(--font-heading);
	font-size: clamp(28px, 3vw, 34px);
	color: var(--color-heading);
	margin-bottom: 20px;
}

.about-text p {
	color: var(--color-text-l);
	margin-bottom: 16px;
	font-size: 16px;
}

.about-values {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.value-item {
	background: var(--color-card);
	padding: 24px;
	border-radius: 10px;
	border: 1px solid rgba(107, 158, 189, 0.1);
}

.value-item .num {
	font-family: var(--font-heading);
	font-size: 32px;
	color: var(--color-primary);
	display: block;
	margin-bottom: 4px;
}

.value-item .num .icon {
	margin: 0;
	padding: 0;
}

.value-item h4 {
	font-size: 15px;
	color: var(--color-heading);
	margin-bottom: 4px;
}

.value-item p {
	font-size: 13px;
	color: var(--color-text-l);
}

/* ── Contact ── */

.contact-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.contact-info {
	margin-bottom: 40px;
}

.contact-info p {
	font-size: 18px;
	color: var(--color-text);
	margin-bottom: 8px;
}

.contact-info a {
	color: var(--color-primary-d);
	font-weight: 700;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}

.contact-form input,
.contact-form textarea {
	padding: 14px 16px;
	border: 1px solid var(--color-primary-xl);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 15px;
	background: var(--color-card);
	color: var(--color-text);
	transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* ── Footer ── */

.footer {
	padding: 40px 24px;
	text-align: center;
	border-top: 1px solid var(--color-primary-xl);
}

.footer p {
	font-size: 13px;
	color: var(--color-text-l);
}

/* ── Back to Top ── */

.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 32px;
	z-index: 999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--color-primary-d);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s, transform 0.3s, background 0.25s;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	box-shadow: 0 2px 12px rgba(74, 124, 158, 0.25);
}

.back-to-top.visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.back-to-top:hover {
	background: var(--color-heading);
	transform: translateY(-2px);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	display: block;
}

/* ── Scroll Reveal ── */

.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Mobile ── */

@media (max-width: 768px) {
	.nav-links {
	    display: none;
	    position: absolute;
	    top: var(--nav-height);
	    left: 0;
	    right: 0;
	    background: var(--color-bg);
	    flex-direction: column;
	    gap: 0;
	    border-bottom: 1px solid var(--color-primary-xl);
	    padding: 12px 24px;
	}

	.nav-links.open {
	    display: flex;
	}

	.nav-links a {
	    padding: 12px 0;
	}

	.nav-toggle {
	    display: block;
	}

	.about-content {
	    grid-template-columns: 1fr;
	    gap: 40px;
	}

	.about-values {
	    grid-template-columns: 1fr;
	}

	.services-grid {
	    grid-template-columns: 1fr;
	}

	.section {
	    padding: 64px 20px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.services-grid {
	    grid-template-columns: repeat(2, 1fr);
	}
}
