/*-----------------------------------------------------------------------------------
	Matepo Research AB - WCAG AA Compliant Flexbox Layout
	Author: Claude Code
	Version: 2.0
	Features: Bilingual support, Light/Dark mode, Flexbox responsive layout
-----------------------------------------------------------------------------------*/

/* CSS Custom Properties */
:root {
	/* Improved Business Palette */
	--business-dark: #1a1a1a; /* True dark for dark mode backgrounds */
	--business-primary: #2563eb; /* Primary blue for interactions */
	--business-light: #fefefe; /* Off white */

	--logo-color: var(--business-primary);
	--heading-color: var(--business-primary);
	--heading-dark: var(--business-primary);
	--interactive-color: var(--business-primary);
	--neutral-color: var(--business-light);
	--text-dark: var(--business-dark);

	/* Update primary/secondary/accent to match new palette */
	--primary-color: var(--business-primary);
	--secondary-color: var(--business-primary);
	--accent-color: var(--business-primary);


	/* Light Theme Colors */
	--bg-primary: var(--business-light);
	--bg-secondary: var(--business-light);
	--bg-tertiary: var(--business-light);
	--text-primary: var(--business-dark);
	--text-secondary: var(--business-dark);
	--text-muted: var(--business-dark);
	--border-color: var(--business-primary);
	--shadow-color: rgba(37, 99, 235, 0.1);
	--link-bg: rgba(37, 99, 235, 0.08);
	--link-bg-hover: var(--business-primary);
	--header-bg: var(--business-light);
	--header-border: var(--business-primary);

	/* Spacing */
	--space-xs: 0.25rem;
	--space-sm: 0.75rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;
	--space-xxl: 4rem;

	/* =====================================================
	   LAYOUT — change these two to adjust whitespace:

	   --section-v-padding  →  vertical padding of the hero,
	                           testimonials, and each service
	                           section. Reduce to make the
	                           page feel more compact.
	                           Default: ~7.2rem (4rem × 1.8)

	   --content-h-padding  →  horizontal side-padding of
	                           every content container
	                           (nav, hero, testimonials,
	                           services, footer).
	                           Default: 1.5rem
	   ===================================================== */
	--section-v-padding: calc(var(--space-md));
	--content-h-padding: var(--space-md);

	/* Breakpoints */
	--mobile-max: 768px;
	--tablet-max: 1024px;
	--desktop-min: 1025px;
}

/* Dark Theme - WCAG AA Compliant */
[data-theme="dark"] {
	--bg-primary: var(--business-dark);
	--bg-secondary: var(--business-dark);
	--bg-tertiary: var(--business-dark);
	--text-primary: var(--business-light);
	--text-secondary: var(--business-light);
	--text-muted: var(--business-light);
	--border-color: var(--business-primary);
	--logo-color: var(--business-light);
	--heading-color: var(--business-light);
	--heading-dark: var(--business-light);
	--interactive-color: var(--business-primary);
	--neutral-color: var(--business-light);
	--text-dark: var(--business-light);
	--link-bg: rgba(37, 99, 235, 0.2);
	--link-bg-hover: var(--business-primary);
	--header-bg: var(--business-dark);
	--header-border: var(--business-primary);
	--shadow-color: rgba(37, 99, 235, 0.2);
}

/* Dark theme overrides for choosers */
[data-theme="dark"] .language-selector {
	background: var(--business-dark);
	border-color: var(--business-primary);
}

[data-theme="dark"] .lang-btn {
	background: var(--business-dark);
	color: var(--business-light);
	border-right-color: var(--business-primary);
}

[data-theme="dark"] .lang-btn:hover {
	background: var(--business-primary);
	color: var(--business-light);
}

[data-theme="dark"] .lang-btn.active,
[data-theme="dark"] .lang-btn[aria-pressed="true"] {
	background: var(--business-primary);
	color: var(--business-light);
}

[data-theme="dark"] .hero-section,
[data-theme="dark"] .service-item {
	background: var(--business-dark);
	border-bottom-color: var(--business-primary);
}

[data-theme="dark"] a[href] {
	color: var(--business-light);
	background: rgba(254, 254, 254, 0.1);
	border-color: var(--business-light);
}

[data-theme="dark"] a[href]:hover {
	background: var(--business-light);
	color: var(--business-dark);
	border-color: var(--business-light);
}

[data-theme="dark"] p a[href] {
	color: var(--business-light);
	background: rgba(254, 254, 254, 0.1);
	border-color: var(--business-light);
}

[data-theme="dark"] p a[href]:hover {
	background: var(--business-light);
	color: var(--business-dark);
	border-color: var(--business-light);
}

/* Font Faces */
@font-face {
	font-family: 'Acrom-Regular';
	src: url('./fonts/Acrom-Regular/Acrom-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Acrom-Bold';
	src: url('./fonts/Acrom-Bold/Acrom-Bold.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* Animations */

/* Base Styles */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Acrom-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Focus Styles for Accessibility */
*:focus {
	outline: 2px dashed var(--accent-color);
	outline-offset: 2px;
}

*:focus:not(:focus-visible) {
	outline: none;
}

*:focus-visible {
	outline: 2px dashed var(--accent-color);
	outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--accent-color);
	color: white;
	padding: 8px;
	text-decoration: none;
	z-index: 1000;
}

.skip-link:focus {
	top: 6px;
}

/* Page Container */
.page-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header & Navigation */
header {
	background: var(--header-bg);
	border-bottom: 4px solid var(--header-border);
	position: sticky;
	top: 0;
	z-index: 100;
	padding: var(--space-md) 0;
	box-shadow: 0 2px 8px var(--shadow-color);
}

.main-nav {
	padding: var(--space-md) 0;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--content-h-padding);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
}

.logo-section svg {
	fill: var(--logo-color);
	height: auto;
	max-width: 100%;
	transform: scale(1.5);
	transform-origin: left center;
	padding-bottom: 0.5rem;
	padding-top: 0.5rem;
}

.nav-controls {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

/* Language Selector */
.language-selector {
	display: flex;
	border: 2px solid var(--border-color);
	overflow: hidden;
	background: var(--bg-primary);
	border-radius: 8px;
}

.lang-btn {
	background: var(--bg-primary);
	border: none;
	padding: var(--space-sm) var(--space-md);
	color: var(--text-primary);
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	border-right: 2px solid var(--border-color);
	transition: all 0.2s ease;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lang-btn:last-child {
	border-right: none;
}

.lang-btn:hover {
	background: var(--interactive-color);
	color: var(--business-light);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
	background: var(--business-light);
	color: var(--business-dark);
	font-weight: 900;
}

/* Theme Toggle */
.theme-toggle {
	background: none;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	padding: var(--space-xs);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	min-width: 40px;
	height: 40px;
	color: var(--text-primary);
}

.theme-toggle svg {
	width: 24px;
	height: 24px;
	transition: all 0.2s ease;
}

.theme-toggle:hover {
	background: var(--interactive-color);
	border-color: var(--interactive-color);
	transform: translateY(-1px);
}

.theme-toggle:hover svg {
	color: var(--business-light);
}

/* Theme-specific styling */
[data-theme="light"] .theme-toggle {
	color: var(--business-dark);
}

[data-theme="dark"] .theme-toggle {
	color: var(--business-light);
	border-color: var(--business-primary);
}

[data-theme="dark"] .theme-toggle:hover {
	background: var(--business-primary);
	border-color: var(--business-primary);
}

/* Main Content */
main {
	flex: 1;
}

/* Hero Section */
.hero-section {
	background: var(--bg-primary);
	padding: var(--section-v-padding) 0;
	border-bottom: 3px dotted var(--border-color);
	/* min-height: 70vh; */
	display: flex;
	align-items: center;
	position: relative;
}

.hero-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--content-h-padding);
	display: flex;
	gap: var(--space-xl);
	align-items: stretch;
	flex-wrap: wrap;
}

.hero-content {
	flex: 1 1 300px;
	min-width: 300px;
}

.hero-title {
	font-family: 'Acrom-Bold', sans-serif;
	font-size: clamp(2.2rem, 5vw, 3rem);
	line-height: 1.1;
	margin: 0 0 var(--space-lg) 0;
	color: var(--text-primary);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

[data-theme="dark"] .hero-title {
	text-shadow: 0 0 0.05em;
}

.hero-subtitle {
	font-size: clamp(1.4rem, 3.5vw, 2.2rem);
	font-weight: 800;
	margin: 0 0 var(--space-md) 0;
	color: var(--text-primary);
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-transform: none;
	font-family: 'Acrom-Bold', sans-serif;
}

[data-theme="dark"] .hero-subtitle {
	text-shadow: 0 0 0.05em;
}

/* Dark theme text-shadow for all headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .service-title {
	text-shadow: 0 0 0.05em;
}

.hero-text {
	font-size: 1.25rem;
	margin: 0 0 var(--space-xl) 0;
	color: var(--text-primary);
	font-weight: 600;
	line-height: 1.5;
}

.hero-cta {
	flex: 0 1 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--space-xs);
}

/* Standardized Button Base */
/* .btn-base {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	padding: var(--space-md) var(--space-lg);
	border: 2px solid;
	text-decoration: none;
	font-family: 'Acrom-Bold', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
} */

#cta-email {
	background: var(--bg-primary);
	color: var(--text-primary);
	border: 3px solid var(--border-color);
	font-size: 1.2em;
	padding: var(--space-sm) var(--space-md);
	max-width: 400px;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	text-decoration: none;
	font-family: inherit;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s ease;
}

#cta-email:hover {
	background: var(--interactive-color);
	color: var(--business-light);
	border-color: var(--interactive-color);
	/* transform: translateY(-1px); */
}

/* Dark theme CTA button */
[data-theme="dark"] .cta-button {
	background: var(--business-dark);
	color: var(--business-light);
	border-color: var(--business-primary);
}

[data-theme="dark"] .cta-button:hover {
	background: var(--business-primary);
	color: var(--business-light);
	border-color: var(--business-primary);
}

/* Services Section */
.services-section {
	padding: 0;
}

.services-container {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.service-item {
	padding: var(--section-v-padding) 0;
	position: relative;
	margin: 0;
}

.service-item {
	background: var(--bg-primary);
	color: var(--text-primary);
	border-bottom: 3px dotted var(--border-color);
	margin-bottom: 0;
}

.service-item:last-child {
	border-bottom: none;
}

.service-item .service-content,
.service-item .service-title,
.service-item .expandable-section {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: var(--content-h-padding);
	padding-right: var(--content-h-padding);
}


.service-title {
	font-family: 'Acrom-Bold', sans-serif;
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 var(--space-xxl) 0;
	padding: 0;
	color: inherit;
	background: none;
	text-align: left;
	font-weight: 900;
	line-height: 1.1;
	position: relative;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.service-content {
	display: flex;
	gap: calc(var(--space-xl) * 1.5);
	align-items: center;
	margin-bottom: var(--space-xl);
	padding: var(--space-xl) 0;
}

.service-content.reverse {
	flex-direction: row-reverse;
}

.service-image {
	flex: 1;
	max-width: 500px;
}

.service-image img {
	width: 100%;
	height: auto;
	position: relative;
}

.service-image {
	position: relative;
}


.service-description {
	flex: 1;
}

.service-description p {
	font-size: 1.125rem;
	margin: 0 0 var(--space-md) 0;
	color: inherit;
	font-weight: 600;
	line-height: 1.4;
}

/* Expandable Sections */
.expandable-section {
	margin-top: var(--space-xxl);
}

.expand-button {
	background: var(--interactive-color);
	border: 4px solid var(--interactive-color);
	padding: var(--space-lg) var(--space-xl);
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
	cursor: pointer;
	font-size: 1.125rem;
	color: var(--business-light);
	font-family: 'Acrom-Bold', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 8px;
	transition: all 0.2s ease;
}


.expand-button:hover {
	background: var(--bg-primary);
	border-color: var(--interactive-color);
	color: var(--interactive-color);
	/* transform: translateY(-1px); */
}

.expand-button[aria-expanded="true"] {
	background: var(--bg-primary);
	border-color: var(--interactive-color);
	color: var(--interactive-color);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}


.expand-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
	color: var(--business-light);
	transition: transform 0.3s ease;
	font-weight: bold;
	line-height: 1;
}

.expand-button:hover .expand-icon {
	color: var(--interactive-color);
}

.expand-button[aria-expanded="true"] .expand-icon {
	color: var(--interactive-color);
	transform: rotate(180deg);
}

.expandable-content {
	max-height: 0;
	overflow: hidden;
	padding: 0 var(--space-lg);
}

.expandable-content[aria-hidden="false"] {
	max-height: 2000px;
	padding: var(--space-lg);
	border: 4px solid var(--interactive-color);
	border-top: none;
	border-radius: 0 0 8px 8px;
	background: var(--interactive-color);
	color: var(--business-light);
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--space-lg);
}

.content-item h3 {
	font-family: 'Acrom-Bold', sans-serif;
	color: var(--business-light);
	margin: 0 0 var(--space-md) 0;
	font-size: 1.375rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	line-height: 1.2;
}

[data-theme="dark"] .content-item h3 {
	text-shadow: 0 0 0.05em;
}

.content-item p {
	margin: 0;
	color: var(--business-light);
	line-height: 1.5;
}

/* Links inside expandable content need special styling */
.expandable-content a[href] {
	background: rgba(254, 254, 254, 0.15);
	color: var(--business-light);
	border: 1px solid var(--business-light);
}

.expandable-content a[href]:hover {
	background: var(--business-light);
	color: var(--business-primary);
	border-color: var(--business-light);
}

/* Footer */
footer {
	background: var(--bg-secondary);
	border-top: 4px solid var(--border-color);
	padding: var(--space-xxl) 0 var(--space-lg) 0;
	margin-top: auto;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--content-h-padding);
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

.footer-logo {
	text-align: center;
}

.footer-logo svg {
	fill: var(--logo-color);
	width: 100%;
	max-width: 100%;
	height: auto;
}

.footer-content {
	display: flex;
	gap: var(--space-xl);
	justify-content: flex-start;
}

.footer-info,
.footer-contact {
	flex: 1;
	max-width: 300px;
}

.footer-info h3,
.footer-contact h3 {
	font-family: 'Acrom-Bold', sans-serif;
	color: var(--text-primary);
	margin: 0 0 var(--space-md) 0;
	font-size: 1.25rem;
}

[data-theme="dark"] .footer-info h3,
[data-theme="dark"] .footer-contact h3 {
	text-shadow: 0 0 0.05em;
}

.footer-info p,
.footer-contact p {
	margin: 0 0 var(--space-xs) 0;
	color: var(--text-primary);
}

.footer-contact a {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 600;
}

.footer-contact a:hover {
	color: var(--text-primary);
	text-decoration: underline;
}

/* Link styling with background for better contrast */
a[href] {
	color: var(--text-primary);
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid var(--business-primary);
	font-weight: 500;
}

a[href]:hover {
	background: var(--business-primary);
	color: var(--business-light);
	text-decoration: none;
	border-color: var(--business-primary);
}

a[href]:focus {
	background: var(--business-primary);
	color: var(--business-light);
	border-color: var(--business-primary);
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

/* Links in paragraphs for better visibility */
p a[href] {
	background: rgba(37, 99, 235, 0.08);
	color: var(--text-primary);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid var(--business-primary);
	font-weight: 500;
}

p a[href]:hover {
	background: var(--business-primary);
	color: var(--business-light);
	border-color: var(--business-primary);
}

/* Dark mode link improvements */
[data-theme="dark"] a[href] {
	background: rgba(37, 99, 235, 0.15);
	color: var(--text-primary);
	border: 1px solid var(--business-primary);
}

[data-theme="dark"] a[href]:hover {
	background: var(--business-primary);
	color: var(--business-light);
	border-color: var(--business-primary);
}

[data-theme="dark"] a[href]:focus {
	background: var(--business-primary);
	color: var(--business-light);
	border-color: var(--business-primary);
	outline: 2px solid var(--accent-color);
}



/* Testimonials Section */
.testimonials-section {
	padding: var(--section-v-padding) 0;
	border-bottom: 3px dotted var(--border-color);
}

.testimonials-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--content-h-padding);
}

.testimonials-heading {
	font-family: 'Acrom-Bold', sans-serif;
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 var(--space-md) 0;
	color: var(--text-primary);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

.testimonials-carousel {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.carousel-btn {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--border-color);
	background: var(--bg-primary);
	color: var(--text-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 1;
}

.carousel-btn:hover {
	background: var(--business-primary);
	border-color: var(--business-primary);
	color: var(--business-light);
	transform: scale(1.08);
}

.carousel-btn:focus-visible {
	outline: 2px dashed var(--accent-color);
	outline-offset: 2px;
}

.carousel-viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0;
}

.carousel-viewport:focus-visible {
	outline: 2px dashed var(--accent-color);
	outline-offset: 2px;
}

.carousel-track {
	display: flex;
	align-items: stretch;
}

/* Card outer: width set by JS, padding creates visual gap between cards */
.testimonial-card {
	flex-shrink: 0;
	margin: 0;
	padding: 0 var(--space-sm);
	box-sizing: border-box;
	display: flex;
}

.testimonial-card-inner {
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: var(--space-lg);
	box-shadow: 0 2px 8px var(--shadow-color);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	width: 100%;
	transition: box-shadow 0.2s ease;
}

.testimonial-card-inner:hover {
	box-shadow: 0 4px 16px var(--shadow-color);
}

.testimonial-quote {
	margin: 0;
	padding: 0;
	flex: 1;
}

.testimonial-quote::before {
	content: '\201C';
	font-family: 'Acrom-Bold', Georgia, serif;
	font-size: 3.5rem;
	line-height: 0.5;
	color: var(--business-primary);
	display: block;
	margin-bottom: var(--space-xs);
	opacity: 0.5;
}

.testimonial-quote p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	font-style: italic;
	color: var(--text-primary);
	font-weight: 400;
}

.testimonial-footer {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: auto;
	padding-top: var(--space-sm);
	border-top: 1px solid var(--border-color);
}

.testimonial-name {
	font-family: 'Acrom-Bold', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.testimonial-position {
	font-size: 0.85rem;
	color: var(--text-primary);
	opacity: 0.7;
	font-style: normal;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: var(--space-xs);
	margin-top: var(--space-lg);
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--border-color);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
	background: var(--business-primary);
	border-color: var(--business-primary);
}

[data-theme="dark"] .testimonials-section {
	background: var(--business-dark);
	border-bottom-color: var(--business-primary);
}


[data-theme="dark"] .testimonial-card-inner {
	border-color: var(--business-primary);
}

[data-theme="dark"] .testimonial-footer {
	border-top-color: var(--business-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
	.main-nav {
		padding: var(--space-sm) 0 var(--space-xs) 0;
	}

	.nav-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: var(--space-xs) var(--space-sm);
	}

	.logo-section svg {
		transform: scale(1.0);
		transform-origin: left center;
	}

	.nav-controls {
		justify-content: flex-end;
		gap: var(--space-xs);
	}

	.language-selector {
		min-width: auto;
	}

	.lang-btn {
		padding: var(--space-xs) var(--space-sm);
		font-size: 12px;
		min-width: 35px;
		height: 35px;
	}

	.theme-toggle {
		min-width: 35px;
		height: 35px;
		padding: 6px;
	}

	.theme-toggle svg {
		width: 20px;
		height: 20px;
	}

	.hero-container {
		flex-direction: column;
		text-align: center;
		gap: var(--space-md);
		padding: 0 var(--space-sm);
	}

	.hero-text {
		margin: 0 0 var(--space-sm) 0;
	}

	.hero-cta {
		width: 100%;
		padding: var(--space-xs);
	}

	.cta-button,
	#cta-email {
		width: 100%;
		max-width: 280px;
		min-width: unset;
		padding: var(--space-xs) var(--space-sm);
		font-size: 1rem;
	}

	.expandable-content {
		padding: 0 var(--space-sm);
	}

	.expandable-content[aria-hidden="false"] {
		padding: var(--space-sm);
		max-height: 3000px;
	}

	.service-content,
	.service-content.reverse {
		flex-direction: column;
		gap: var(--space-lg);
	}

	.service-item {
		padding: var(--space-md);
	}

	.service-title {
		font-size: clamp(1.5rem, 6vw, 2rem);
		line-height: 1.1;
	}

	.testimonials-heading {
		font-size: clamp(1.5rem, 6vw, 2rem);
		line-height: 1.1;
		text-align: center;
	}

	.services-container {
		padding: 0 var(--space-sm);
	}

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

	.content-item h3 {
		font-size: 1.125rem;
		line-height: 1.1;
		word-break: break-word;
	}

	.testimonials-section {
		padding: var(--section-v-padding) 0;
	}

	.testimonials-container {
		padding: 0 var(--space-sm);
	}

	.testimonials-carousel {
		gap: var(--space-xs);
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
	}

	.carousel-btn svg {
		width: 20px;
		height: 20px;
	}

	.testimonial-card {
		padding: 0 var(--space-xs);
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
		align-items: center;
		justify-content: center;
	}

	.footer-info,
	.footer-contact {
		max-width: 100%;
		width: 100%;
	}

	.footer-container {
		padding: 0 var(--space-sm);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	:root {
		--space-md: 1rem;
		--space-lg: 1.5rem;
		--space-xl: 2rem;
		--space-xxl: 2.5rem;
	}

	.hero-section {
		padding: var(--section-v-padding) 0;
	}

	.services-section {
		padding: var(--space-lg) 0;
	}

	.service-item {
		padding: var(--space-md);
	}
}

/* Language Support */
[lang="en"] .lang-btn[data-lang="en"] {
	background: var(--accent-color);
	color: white;
}

[lang="sv"] .lang-btn[data-lang="sv"] {
	background: var(--accent-color);
	color: white;
}

/* Extra Small Mobile (iPhone SE and similar) */
@media (max-width: 480px) {
	.logo-section svg {
		transform: scale(0.8);
		transform-origin: left center;
	}

	.nav-container {
		padding: var(--space-xs) var(--space-xs);
	}

	.nav-controls {
		gap: 6px;
	}

	.lang-btn {
		padding: var(--space-xs) 8px;
		font-size: 11px;
		min-width: 30px;
		height: 30px;
	}

	.theme-toggle {
		min-width: 30px;
		height: 30px;
		padding: 4px;
	}

	.theme-toggle svg {
		width: 18px;
		height: 18px;
	}
}

/* Print Styles */
@media print {
	* {
		background: white !important;
		color: black !important;
		box-shadow: none !important;
	}

	.nav-controls,
	.expand-button {
		display: none !important;
	}

	.expandable-content {
		max-height: none !important;
		overflow: visible !important;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	:root {
		--border-color: #000000;
		--text-secondary: #000000;
	}

	[data-theme="dark"] {
		--border-color: #ffffff;
		--text-secondary: #ffffff;
	}
}

/* Reduced Motion Support */
@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;
	}
}