/* =========================
   Pastakas OÜ – styles.css
   ========================= */

/* Color system */
:root {
	--primary: #A6D3F2;
	/* pastel blue */
	--primary-strong: #8CC5EC;
	/* slightly stronger */
	--accent: #274C77;
	/* matching deep slate-blue */
	--bg: #ffffff;
	--surface: #f6f9fc;
	--text: #0f172a;
	/* slate-900 */
	--muted: #475569;
	/* slate-600 */
	--ring: rgba(39, 76, 119, 0.25);
	--max-w: 1100px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

/* Accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: 0 0 .5rem .5rem;
}

.skip-link:focus {
	left: 0.5rem;
	z-index: 1000;
}

/* Layout helpers */
.container {
	width: 100%;
	max-width: var(--max-w);
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2rem);
}

.section {
	padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-alt {
	background: var(--surface);
	border-top: 1px solid #e6edf5;
	border-bottom: 1px solid #e6edf5;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
}

.logo-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(60% 60% at 35% 35%, var(--primary) 0%, var(--primary-strong) 100%);
	box-shadow: 0 0 0 6px rgba(166, 211, 242, 0.35);
}

.brand-name {
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--text);
	text-decoration: none;
}

.nav ul {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	text-decoration: none;
	color: var(--muted);
	padding: .4rem .6rem;
	border-radius: .5rem;
}

.nav a:hover,
.nav a:focus {
	color: var(--accent);
	background: rgba(39, 76, 119, 0.06);
	outline: none;
}

/* Hero */
.hero {
	position: relative;
	isolation: isolate;
	min-height: min(78vh, 820px);
	display: grid;
	align-items: center;
	padding: clamp(3rem, 8vw, 8rem) 0;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1200px 600px at 20% 10%, rgba(166, 211, 242, 0.65), transparent 60%),
		radial-gradient(900px 480px at 85% 20%, rgba(140, 197, 236, 0.50), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-inner {
	text-align: left;
}

.hero h1 {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 1rem 0;
}

.subheadline {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: var(--muted);
	max-width: 55ch;
	margin: 0;
}

/* Section titles & text */
h2 {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	margin: 0 0 0.75rem 0;
}

.leading {
	color: var(--muted);
	max-width: 70ch;
	margin: 0 0 2rem 0;
}

/* Features grid */
.grid.features {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.feature-card {
	grid-column: span 12;
	padding: 1.25rem 1.25rem;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
	transform: translateY(-2px);
	border-color: rgba(39, 76, 119, 0.18);
	box-shadow: 0 8px 24px rgba(39, 76, 119, 0.08);
}

.feature-card h3 {
	margin: 0 0 .4rem 0;
	font-size: 1.1rem;
	color: var(--accent);
}

.feature-card p {
	margin: 0;
	color: var(--muted);
}

/* Contact */
.contact .email a {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	color: var(--accent);
	background: linear-gradient(0deg, rgba(39, 76, 119, 0.06), rgba(39, 76, 119, 0.06)) no-repeat;
	padding: .6rem .9rem;
	border-radius: .6rem;
	border: 1px solid rgba(39, 76, 119, 0.18);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.contact .email a:hover,
.contact .email a:focus {
	background: linear-gradient(0deg, rgba(39, 76, 119, 0.10), rgba(39, 76, 119, 0.10)) no-repeat;
	outline: none;
}

/* Footer */
.site-footer {
	padding: 2rem 0 3rem 0;
	background: #ffffff;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.95rem;
}

.made-by {
	opacity: 0.9;
}

/* Responsive tweaks */
@media (min-width: 640px) {
	.feature-card {
		grid-column: span 6;
	}
}

@media (min-width: 960px) {
	.feature-card {
		grid-column: span 4;
	}

	.hero-inner {
		text-align: left;
	}
}