/* Local Font Definitions */
/* Merriweather Bold (700) */
@font-face {
	font-family: "Merriweather";
	src: url("../fonts/Merriweather/merriweather-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Merriweather Black (900) */
@font-face {
	font-family: "Merriweather";
	src: url("../fonts/Merriweather/merriweather-black.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* Merriweather Italic (400) */
@font-face {
	font-family: "Merriweather";
	src: url("../fonts/Merriweather/merriweather-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* Local Inter Font Definitions */
@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter/inter-italic-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Modern, Clean, Trustworthy Palette */
	--bg: #ffffff;
	--bg-alt: #f8fafc; /* Slate 50 */
	--text-main: #475569; /* Slate 600 */
	--text-dark: #0f172a; /* Slate 900 */

	/* Refined Accents */
	--accent-primary: #0369a1; /* Sky 700 */
	--accent-secondary: #0ea5e9; /* Sky 500 */
	--accent-highlight: #d97706; /* Amber 600 */
	--accent-highlight-dark: #b45309;

	--card-bg: #ffffff;
	--border: #e2e8f0; /* Slate 200 */
	--table-header-bg: #f1f5f9; /* Slate 100 */
	--focus-ring: #0ea5e9;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg:
		0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
	min-height: 100vh;
	background-color: var(--bg);
	color: var(--text-main);
	font-family: "Inter", sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--accent-primary);
	color: white;
	padding: 8px;
	z-index: 1000;
	transition: top 0.3s;
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
}

main {
	width: 100%;
}

/* Typography */
h1,
h2,
h3 {
	font-family: "Merriweather", serif;
	color: var(--text-dark);
	line-height: 1.3;
}

h2 {
	font-size: 2.25rem;
	margin-bottom: 1.5rem;
	color: var(--accent-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
}

h3 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text-dark);
	font-weight: 700;
}

p {
	margin-bottom: 1.5rem;
	color: var(--text-main);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.7;
}

ul {
	list-style: none;
	margin-bottom: 1.5rem;
}

li {
	margin-bottom: 0.75rem;
	padding-left: 1.75rem;
	position: relative;
	color: var(--text-main);
}

li::before {
	content: "→";
	color: var(--accent-highlight);
	font-weight: bold;
	position: absolute;
	left: 0;
	font-size: 1.1em;
	line-height: 1.6rem;
}

strong {
	color: var(--text-dark);
	font-weight: 600;
}

/* Top Menu */
.top-menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.5rem, 1.5vw, 2rem);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}

.menu-logo {
	height: clamp(2.5rem, 5vw, 3.5rem);
	width: auto;
	display: block;
	transition: transform 0.2s;
}

.menu-logo:hover {
	transform: scale(1.02);
}

.logo-link {
	display: flex;
	align-items: center;
	gap: clamp(0.4rem, 1.5vw, 1rem);
	text-decoration: none;
	border-bottom: none !important;
	flex-shrink: 0;
}

.logo-text {
	font-family: "Merriweather", serif;
	font-weight: 900;
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	background: linear-gradient(
		to right,
		var(--text-dark),
		var(--accent-primary)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: var(--text-dark);
}

.top-menu > a {
	border-bottom: none;
}

.nav-items {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 2vw, 2rem);
}

.top-menu .cta-button {
	margin-top: 0;
	font-size: 0.9rem;
	padding: 0.5rem 1.2rem;
}

/* Header (Hero) */
header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 5.5rem 2rem 6rem;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

header .slogan {
	font-size: clamp(1.8rem, 4.5vw + 1rem, 3.5rem);
	color: var(--text-dark);
	font-family: "Merriweather", serif;
	font-weight: 900;
	line-height: 1.3;
	margin-bottom: 1.5rem;
	letter-spacing: -0.02em;
	background: linear-gradient(
		to right,
		var(--text-dark),
		var(--accent-primary)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

header .hero-quote {
	font-size: 1.5rem;
	color: var(--text-main);
	font-weight: 400;
	font-style: italic;
	font-family: "Merriweather", serif;
	max-width: 800px;
	margin-bottom: 2rem;
	align-self: flex-end;
	text-align: right;
}

.hero-description {
	font-size: 1.1rem;
	color: var(--text-main);
	margin-top: 2rem;
}

.nav-link {
	font-family: "Inter", sans-serif;
	font-size: clamp(0.85rem, 1.5vw, 0.95rem);
	color: var(--text-main);
	text-decoration: none;
	font-weight: 600;
	padding: 0.5rem 0;
	position: relative;
	transition: color 0.2s;
	white-space: nowrap;
}

.nav-link::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--accent-highlight);
	transition: width 0.3s ease;
}

.nav-link:hover {
	color: var(--text-dark);
}

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

.nav-link.login-link {
	color: var(--accent-primary);
}

.section-header {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 3rem;
	text-align: left;
}

.section-header h2 {
	margin-bottom: 0;
	font-family: "Inter", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent-highlight);
	background: var(--bg-alt);
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	display: inline-block;
}

/* Sections */
.section {
	max-width: 1200px;
	margin: 0 auto 8rem;
	padding: 0 2rem;
}

/* Table Styles (Desktop) */
.comparison-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 2rem;
	background: var(--card-bg);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	transition: box-shadow 0.3s;
}

.comparison-table:hover {
	box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
	padding: 2rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.comparison-table th {
	background-color: var(--bg-alt);
	color: var(--text-dark);
	font-family: "Inter", sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.comparison-table td {
	vertical-align: top;
	transition: background-color 0.2s;
}

.comparison-table tr:hover td {
	background-color: #f8fafc;
}

.comparison-table tr:last-child td,
.comparison-table tr:last-child th {
	border-bottom: none;
}

/* Services Grid Layout (Replaces Table on Home) */
.services-grid-container {
	display: grid;
	grid-template-columns: minmax(240px, 1.2fr) 1.5fr 2fr 1.5fr;
	background: var(--card-bg);
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	margin-bottom: 2rem;
}

.grid-header {
	display: contents;
}

.grid-header > div {
	background-color: var(--bg-alt);
	padding: 1.5rem 2rem;
	font-weight: 600;
	color: var(--text-dark);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	border-bottom: 1px solid var(--border);
}

.grid-row {
	display: contents;
}

.grid-row > div {
	padding: 2rem;
	border-bottom: 1px solid var(--border);
}

/* Remove bottom border for last row items */
.grid-row:last-child > div {
	border-bottom: none;
}

.service-name h3 {
	font-size: 1.6rem;
	margin-bottom: 0.5rem;
	color: var(--accent-highlight);
}

.service-name p {
	font-size: 0.95rem;
	font-style: italic;
	color: var(--text-main);
}

/* Mobile Services (Hidden on Desktop) */
.mobile-services {
	display: none;
}

/* Grid Layout - Unified Table Look */
.grid-2-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	background: var(--card-bg);
	border-radius: 24px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.grid-col {
	padding: 4rem;
	height: 100%;
}

.grid-col:first-child {
	border-right: 1px solid var(--border);
	background-color: var(--bg-alt);
}

.grid-col h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	border-bottom: none;
	padding-bottom: 0;
	color: var(--text-dark);
}

/* Links */
a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.2s;
	font-weight: 500;
}

a:hover {
	color: var(--accent-secondary);
}

.cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--text-dark);
	color: white;
	padding: 0.875rem 2rem;
	border-radius: 9999px;
	font-weight: 600;
	margin-top: 1rem;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.cta-button:hover {
	background-color: var(--accent-highlight);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: white;
}

.cta-button-secondary {
	background-color: var(--accent-primary);
}

.cta-button-secondary:hover {
	background-color: var(--accent-highlight);
}

/* Partners */
.partners {
	margin-top: 6rem;
	padding: 4rem 2rem;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 0.95rem;
	color: var(--text-main);
	font-family: "Inter", sans-serif;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.partners a {
	color: var(--text-main);
	font-weight: 600;
}

.partners a:hover {
	color: var(--accent-primary);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	opacity: 0; /* Start hidden */
	overflow: visible;
}

header .slogan.animate-fade-in {
	padding-top: 0.15em;
	margin-top: -0.15em;
}

.delay-100 {
	animation-delay: 0.1s;
}
.delay-200 {
	animation-delay: 0.2s;
}
.delay-300 {
	animation-delay: 0.3s;
}

/* Contact Page Styles */
.contact-card {
	background: var(--card-bg);
	padding: 3rem 2rem;
	border-radius: 16px;
	border: 1px solid var(--border);
	max-width: 500px;
	margin: 0 auto;
	text-align: center;
	box-shadow: var(--shadow-md);
}

.contact-options {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
	margin-top: 1rem;
}

.contact-divider {
	display: flex;
	align-items: center;
	color: var(--text-main);
	font-weight: 500;
	width: 100%;
	gap: 1rem;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.contact-divider::before,
.contact-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--border);
}

.contact-button {
	width: 100%;
	justify-content: center;
	font-size: 1.1rem;
	padding: 1rem;
}

@media (max-width: 1024px) {
	.grid-2-cols {
		grid-template-columns: 1fr;
	}

	.grid-col:first-child {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.grid-col {
		padding: 3rem;
	}

	.comparison-table {
		display: none;
	}

	.services-grid-container {
		display: none;
	}

	.mobile-services {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.mobile-service-card {
		background: var(--card-bg);
		padding: 2rem;
		border-radius: 16px;
		border: 1px solid var(--border);
		box-shadow: var(--shadow-sm);
	}

	.mobile-service-card h3 {
		color: var(--accent-highlight);
	}

	.service-subtitle {
		font-style: italic;
		color: var(--accent-primary);
		font-weight: 500;
		margin-bottom: 1rem;
		font-family: "Merriweather", serif;
		font-size: 1.1rem;
	}

	.top-menu {
		justify-content: center;
		gap: 0.5rem;
	}

	.logo-link {
		width: 100%;
		justify-content: center;
	}

	.nav-items {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: clamp(0.75rem, 3vw, 1.5rem);
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
