/* Smartech FZC – visual style carried over from the original Twenty Twenty-Four design */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/Inter-VariableFont.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: fallback;
}

@font-face {
	font-family: "Cardo";
	src: url("/assets/fonts/cardo_normal_400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: fallback;
}

@font-face {
	font-family: "Cardo";
	src: url("/assets/fonts/cardo_italic_400.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: fallback;
}

@font-face {
	font-family: "Cardo";
	src: url("/assets/fonts/cardo_normal_700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: fallback;
}

/* ---------- Tokens ---------- */

:root {
	--font-body: "Inter", sans-serif;
	--font-heading: "Cardo", serif;

	--color-text: #111111;
	--color-muted: #636363;
	--color-faint: #a4a4a4;
	--color-bg: #f7f8ff;
	--color-surface: #ffffff;
	--color-inverse: #f9f9f9;
	--color-brand: #3254ff;
	--color-brand-soft: #eef1ff;

	--text-small: 0.9rem;
	--text-medium: 1.05rem;
	--text-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
	--text-x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
	--text-brand: clamp(0.984rem, 0.984rem + ((1vw - 0.2rem) * 0.86), 1.5rem);

	--space-10: 1rem;
	--space-20: min(1.5rem, 2vw);
	--space-30: min(2.5rem, 3vw);
	--space-40: min(4rem, 5vw);
	--space-50: min(6.5rem, 8vw);
	--space-60: min(10.5rem, 13vw);

	--width-narrow: 620px;
	--width-wide: 1280px;
	--radius: var(--space-20);
	--flow: 1.2rem;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-medium);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	font-size: var(--text-x-large);
	line-height: 1.15;
}

h2 {
	font-size: var(--text-x-large);
}

h3 {
	font-size: var(--text-large);
}

p,
figure,
blockquote {
	margin: 0;
}

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

a {
	color: inherit;
	transition: color 0.2s ease;
}

.nowrap {
	white-space: nowrap;
}

.small {
	font-size: var(--text-small);
	line-height: 1.55;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 10;
	padding: 0.75rem 1rem;
	background: var(--color-surface);
	color: var(--color-text);
}

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

/* ---------- Layout ---------- */

.site-header,
.site-footer,
.section {
	padding-inline: var(--space-50);
}

.site-header,
main,
.site-footer {
	margin-top: var(--flow);
}

.site-header {
	margin-top: 0;
}

.wide {
	max-width: var(--width-wide);
	margin-inline: auto;
}

.narrow {
	max-width: var(--width-narrow);
	margin-inline: auto;
}

.center {
	text-align: center;
}

.section {
	padding-block: var(--space-50);
}

.section-head h2 + p {
	margin-top: 1.25rem;
}

.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ---------- Asterisk ornament (from the original theme) ---------- */

.asterisk::before {
	content: "";
	display: block;
	width: 1.5rem;
	height: 3rem;
	background: var(--color-muted);
	clip-path: path("M11.93.684v8.039l5.633-5.633 1.216 1.23-5.66 5.66h8.04v1.737H13.2l5.701 5.701-1.23 1.23-5.742-5.742V21h-1.737v-8.094l-5.77 5.77-1.23-1.217 5.743-5.742H.842V9.98h8.162l-5.701-5.7 1.23-1.231 5.66 5.66V.684h1.737Z");
}

.center .asterisk::before {
	margin-inline: auto;
}

/* ---------- Header & brand ---------- */

.site-header {
	padding-block: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-20);
	text-decoration: none;
}

.brand-stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--flow);
}

.brand-logo {
	width: 60px;
	height: 60px;
	transition: transform 0.5s var(--ease-out);
}

.brand:hover .brand-logo {
	transform: rotate(-8deg) scale(1.06);
}

.brand-name {
	font-size: var(--text-brand);
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.55;
}

/* ---------- Photos ---------- */

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

.photo img {
	width: 100%;
	transition: transform 0.8s var(--ease-out);
}

.photo:hover img {
	transform: scale(1.03);
}

/* ---------- Hero ---------- */

.hero h1 + p {
	margin-top: 1.25rem;
}

.hero .photo {
	margin-top: calc(1.25rem + var(--space-30) + 2 * var(--flow));
}

/* ---------- About ---------- */

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

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-30) var(--space-40);
	margin-top: calc(var(--space-40) + 2 * var(--flow));
}

.about .photo {
	margin-top: calc(var(--space-20) + 2 * var(--flow));
}

.about .photo + .features {
	margin-top: calc(var(--space-20) + 2 * var(--flow));
}

.feature h3 {
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-size: var(--text-medium);
	font-weight: 600;
	transition: color 0.3s ease;
}

.feature p {
	margin-top: var(--space-10);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.875rem;
	background: var(--color-brand-soft);
	color: var(--color-brand);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out);
}

.feature-icon .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.feature:hover .feature-icon {
	background: var(--color-brand);
	color: #fff;
	transform: translateY(-3px) rotate(-4deg);
}

.feature:hover h3 {
	color: var(--color-brand);
}

/* ---------- Team ---------- */

.members {
	margin-top: calc(var(--space-40) + 2 * var(--flow));
}

.member {
	display: grid;
	grid-template-columns: 2fr 3fr;
	align-items: center;
	gap: var(--space-60);
}

.member.photo-right {
	grid-template-columns: 3fr 2fr;
}

.member + .member {
	margin-top: var(--space-40);
}

.member-bio p {
	margin-top: var(--flow);
}

/* ---------- Testimonial ---------- */

.testimonial {
	padding: var(--space-60);
	background: var(--color-text);
	color: var(--color-inverse);
}

.quote-icon {
	display: flex;
	justify-content: center;
	color: var(--color-faint);
}

.quote-icon .icon {
	width: 2.25rem;
	height: 2.25rem;
}

.testimonial blockquote {
	margin-top: var(--flow);
	font-family: var(--font-heading);
	font-size: var(--text-x-large);
	font-style: italic;
	line-height: 1.2;
}

.testimonial figcaption {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: calc(var(--space-10) * 2);
}

.quote-role {
	color: var(--color-faint);
	font-size: var(--text-small);
	font-weight: 300;
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: var(--space-40);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--flow);
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: var(--flow);
}

.footer-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--flow);
}

.footer-contact h2 {
	font-family: var(--font-body);
	font-size: var(--text-medium);
	font-weight: 600;
}

.contact-line {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.contact-line .icon {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-top: 0.2em;
	color: var(--color-brand);
	transition: transform 0.3s var(--ease-out);
}

a.contact-line:hover {
	color: var(--color-brand);
}

a.contact-line:hover .icon {
	transform: scale(1.15);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--flow);
	margin-top: var(--flow);
	padding-top: var(--space-50);
}

.credit {
	color: var(--color-muted);
}

.credit a {
	color: var(--color-text);
}

.credit a:hover {
	color: var(--color-brand);
}

/* ---------- Scroll reveal (only when JS runs, so content never stays hidden) ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
		transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.features {
		grid-template-columns: 1fr;
	}

	.member,
	.member.photo-right {
		grid-template-columns: 1fr;
		gap: var(--space-30);
	}

	/* Photo above the bio on both team members */
	.member.photo-right .photo {
		order: -1;
	}

	.footer-top {
		align-items: flex-start;
	}

	.footer-contact {
		align-items: flex-start;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
