/* =========================================================
   Κουστένης Παναγιώτης – ΩΡΛ · main stylesheet
   ========================================================= */

:root {
	--ink: #13303b;
	--ink-soft: #4a6470;
	--muted: #7b8f97;
	--bg: #f7f5f1;
	--surface: #ffffff;
	--tint: #eaf2f3;
	--line: #dde6e8;
	--primary: #1b6a83;
	--primary-dark: #0f3b4a;
	--primary-light: #d7ebef;
	--accent: #b9814f;           /* warm wood tone from the office photos */
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(19, 48, 59, .06), 0 8px 24px rgba(19, 48, 59, .08);
	--shadow-lg: 0 20px 50px rgba(15, 59, 74, .18);
	--header-h: 92px;
	--font-body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Literata', Georgia, 'Times New Roman', serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0; color: var(--primary-dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.ic {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	stroke-width: 1.75;
}

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: .6em 1em;
	background: var(--primary-dark);
	color: #fff;
	border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .7em 1.25em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-weight: 500;
	font-size: .95rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(27, 106, 131, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--primary-dark); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(19, 48, 59, .06); }

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand img { height: 72px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
	display: block;
	padding: .5em .8em;
	border-radius: 8px;
	color: var(--ink-soft);
	font-weight: 500;
	font-size: .95rem;
	position: relative;
}
.nav ul a::after {
	content: "";
	position: absolute;
	left: .8em; right: .8em; bottom: .25em;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .25s;
	border-radius: 2px;
}
.nav ul a:hover, .nav ul a.active { color: var(--primary-dark); }
.nav ul a.active::after, .nav ul a:hover::after { transform: scaleX(1); }

.menu-btn {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--primary-dark);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* ---------- hero ---------- */
.hero {
	position: relative;
	padding: 56px 0 80px;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 70vw;
	height: 70vw;
	max-width: 900px;
	max-height: 900px;
	background: radial-gradient(closest-side, var(--primary-light), transparent 70%);
	opacity: .8;
	z-index: -1;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 56px;
	align-items: center;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	color: var(--accent);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	font-weight: 500;
	letter-spacing: -.005em;
	line-height: 1.1;
	margin-bottom: .55em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2em; }
.hero-facts { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 1.6em; }
.hero-facts li { display: flex; gap: .8em; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.hero-facts .ic { color: var(--primary); margin-top: .15em; }
.hero-facts strong { color: var(--ink); font-weight: 600; }

.hero-media {
	position: relative;
	aspect-ratio: 1600 / 1026;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--tint);
}
.hero-media::after {   /* decorative offset frame */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
	pointer-events: none;
}
.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1); }
.dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(15, 59, 74, .35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 2;
}
.dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: width .3s, background .3s;
}
.dots button[aria-selected="true"] { width: 26px; background: #fff; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--primary-dark); color: #dbe8eb; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: #e2b88f; }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.kicker {
	color: var(--accent);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: .8em;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

/* about */
.about-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 64px;
	align-items: start;
}
.about-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose p:first-child::first-letter {
	font-family: var(--font-display);
	float: left;
	font-size: 3.4em;
	line-height: .9;
	padding: .06em .12em 0 0;
	color: var(--primary);
}
.equipment {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 56px;
}
.equipment figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.equipment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.equipment figure:hover img { transform: scale(1.04); }

/* services */
.services {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.service {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-ic {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: var(--primary-light);
	color: var(--primary);
	transition: background .25s, color .25s;
}
.service:hover .service-ic { background: var(--primary); color: #fff; }
.service-ic .ic { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* cv */
.cv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}
.cv-block {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
}
.cv-wide { grid-row: span 2; grid-column: 2; }
.cv-block header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cv-block h3 { font-size: 1.35rem; }
.cv-ic {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--primary-light);
	color: var(--primary);
}
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
	content: "";
	position: absolute;
	left: 6px; top: .5em; bottom: .5em;
	width: 2px;
	background: var(--line);
}
.timeline li { position: relative; color: var(--ink-soft); padding-bottom: 1em; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -26px; top: .5em;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--surface);
	border: 3px solid var(--primary);
}
.timeline li:first-child::before { background: var(--primary); }
.timeline .sub { display: block; font-size: .92em; color: var(--muted); margin-top: .2em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
	padding: .45em 1.1em;
	border-radius: 999px;
	background: var(--tint);
	color: var(--primary-dark);
	font-weight: 500;
}

/* gallery */
.gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: 16px;
	aspect-ratio: 2.2 / 1;
}
.g-item {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	overflow: hidden;
	cursor: zoom-in;
	background: #0b2c37;
}
.g-big { grid-row: span 2; }
.g-item:nth-child(4) { grid-column: 2 / span 2; }
.g-item picture, .g-item img { width: 100%; height: 100%; }
.g-item img { object-fit: cover; transition: transform .6s, opacity .3s; }
.g-item:hover img { transform: scale(1.05); opacity: .9; }
.g-zoom {
	position: absolute;
	right: 14px; bottom: 14px;
	width: 42px; height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .92);
	color: var(--primary-dark);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s, transform .25s;
}
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }

/* contact */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 28px;
	align-items: stretch;
}
.contact-card {
	background: var(--surface);
	border-radius: 24px;
	padding: 40px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.contact-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1.2em; }
.contact-list { display: grid; gap: 22px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--ink); font-weight: 500; font-size: 1.08rem; word-break: break-word; }
.contact-list a:hover { color: var(--primary); }
.c-ic {
	width: 48px; height: 48px;
	flex: none;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--primary-light);
	color: var(--primary);
}
.contact-card .btn { margin-top: auto; }
.map {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow);
	min-height: 420px;
	background: var(--tint);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* footer */
.site-footer { background: #0b2c37; color: #a9c0c6; font-size: .9rem; padding: 28px 0; }
.site-footer strong { color: #fff; font-weight: 500; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* floating buttons */
.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 90;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--primary-dark);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); }
.call-fab { display: none; }

/* lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	background: rgba(6, 22, 28, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #cfe0e4; text-align: center; margin-top: 12px; font-size: .95rem; }
.lb-btn {
	position: absolute;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .services .reveal:nth-child(4n+2) { transition-delay: .06s; }
.js .services .reveal:nth-child(4n+3) { transition-delay: .12s; }
.js .services .reveal:nth-child(4n+4) { transition-delay: .18s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
	.nav { gap: 12px; }
	.nav ul a { padding: .5em .55em; }
	.services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	:root { --header-h: 72px; }
	body { font-size: 16px; }
	.brand img { height: 52px; max-width: calc(100vw - 110px); object-fit: contain; object-position: left center; }

	.menu-btn { display: inline-flex; }
	.nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 12px 20px 24px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(19, 48, 59, .12);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav.open { opacity: 1; transform: none; visibility: visible; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { padding: .85em .2em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav ul a::after { display: none; }
	.nav ul a.active { color: var(--primary); }
	.nav-cta { padding: .95em; font-size: 1rem; }

	.hero { padding: 28px 0 56px; }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-media { order: -1; border-radius: 20px; }
	.hero-actions .btn { flex: 1 1 200px; }

	.section { padding: 64px 0; }
	.section-head { margin-bottom: 32px; }

	.about-grid { grid-template-columns: 1fr; gap: 20px; }
	.about-grid .section-head { position: static; }
	.equipment { margin-top: 32px; gap: 12px; }

	.cv { grid-template-columns: 1fr; }
	.cv-wide { grid-column: auto; grid-row: auto; }
	.cv-block { padding: 24px; }

	.gallery { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.g-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
	.g-item { aspect-ratio: 4 / 3; }
	.g-item:nth-child(4) { grid-column: span 2; aspect-ratio: 16 / 10; }
	.g-zoom { opacity: 1; transform: none; width: 36px; height: 36px; }

	.contact-grid { grid-template-columns: 1fr; }
	.contact-card { padding: 28px 24px; }
	.map, .map iframe { min-height: 320px; }

	/* quick-call pill for phones */
	.call-fab {
		display: inline-flex;
		align-items: center;
		gap: .5em;
		position: fixed;
		left: 16px; bottom: 16px;
		z-index: 90;
		padding: .85em 1.3em;
		border-radius: 999px;
		background: var(--primary);
		color: #fff;
		font-weight: 600;
		box-shadow: var(--shadow-lg);
	}
	.call-fab:hover { color: #fff; }
	.to-top { right: 16px; bottom: 16px; }
	.site-footer { padding-bottom: 96px; }
}

@media (max-width: 560px) {
	.wrap { width: calc(100% - 32px); }
	.equipment { grid-template-columns: 1fr 1fr; }
	.equipment figure:first-child { grid-column: span 2; }
	.services { gap: 12px; }
	.service { padding: 20px 16px; gap: 14px; }
	.service-ic { width: 48px; height: 48px; border-radius: 14px; }
	.service-ic .ic { width: 24px; height: 24px; }
	.service h3 { font-size: .95rem; }
	.prose p { font-size: 1rem; }
	.lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
	.lb-prev { left: calc(50% - 60px); }
	.lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
