/* ═══════════════════════════════════════════════════
   Tilbudsskabelon Theme — Frontpage Stylesheet
   Version: 1.0.0
   ═══════════════════════════════════════════════════ */

:root {
	--green: #044737;
	--green-light: #066b52;
	--green-dark: #033528;
	--green-pale: #e8f5f0;
	--cream: #faf8f5;
	--sand: #f0ece4;
	--charcoal: #1a1a1a;
	--text: #2d2d2d;
	--text-muted: #6b6b6b;
	--white: #ffffff;
	--border: rgba(4, 71, 55, 0.08);
	--radius: 12px;
	--radius-lg: 20px;
	--radius-xl: 32px;
	--shadow-sm: 0 2px 8px rgba(4, 71, 55, 0.04);
	--shadow-md: 0 8px 24px rgba(4, 71, 55, 0.08);
	--shadow-lg: 0 24px 60px rgba(4, 71, 55, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	color: var(--text);
	background: var(--cream);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

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

a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-light); }

/* ─── Utility ─────────────────────────────────── */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.serif { font-family: 'DM Serif Display', serif; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--green-pale);
	color: var(--green);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 24px;
}
.badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--green);
	border-radius: 50%;
	animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* Reveal animations */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ─── Buttons ─────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
	font-family: inherit;
}

.btn-primary {
	background: var(--green);
	color: var(--white);
	box-shadow: 0 4px 16px rgba(4, 71, 55, 0.24);
}
.btn-primary:hover {
	background: var(--green-light);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(4, 71, 55, 0.32);
}

.btn-secondary {
	background: transparent;
	color: var(--green);
	border: 1.5px solid var(--green);
}
.btn-secondary:hover {
	background: var(--green);
	color: var(--white);
}

.btn-white {
	background: var(--white);
	color: var(--green);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.btn-white:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ─── Navigation ──────────────────────────────── */
nav.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 16px 0;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.site-nav.scrolled {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	padding: 12px 0;
}
nav.site-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'DM Serif Display', serif;
	font-size: 22px;
	color: var(--green);
	text-decoration: none;
	flex-shrink: 0;
}
.nav-logo-text-fallback {
	font-family: 'DM Serif Display', serif;
	color: var(--green);
	font-size: 22px;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.nav-links li a {
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}
.nav-links li a:hover { color: var(--green); }

.nav-ctas {
	display: flex;
	align-items: center;
	gap: 12px;
}
.nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
}
.nav-cta-secondary {
	background: transparent;
	color: var(--green);
	border: 1.5px solid var(--green);
}
.nav-cta-secondary:hover {
	background: var(--green-pale);
}
.nav-cta-primary {
	background: var(--green);
	color: var(--white);
	box-shadow: 0 4px 12px rgba(4, 71, 55, 0.2);
	transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta-primary:hover {
	background: var(--green-light);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(4, 71, 55, 0.28);
}
.nav-cta-primary:hover,
.nav-cta-primary:focus,
.nav-cta-primary:active {
	color: var(--white);
}

.mobile-menu-btn {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
}
.mobile-menu-btn span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--green);
	transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────── */
.ts-hero {
	padding: 160px 0 100px;
	position: relative;
	overflow: hidden;
}
.ts-hero::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--green-pale) 0%, transparent 70%);
	opacity: 0.6;
	pointer-events: none;
	z-index: 0;
}
.ts-hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.ts-hero .hero-content {
	max-width: 560px;
}
.ts-hero h1 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.1;
	color: var(--charcoal);
	margin-bottom: 24px;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.ts-hero h1 em {
	color: var(--green);
	font-style: italic;
	display: inline;
}
.ts-hero p {
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 36px;
	max-width: 520px;
}
.ts-hero .hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.ts-hero .hero-visual {
	position: relative;
}
.ts-hero .hero-visual img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* ─── USP Section (3 kort under hero) ─────────── */
.ts-usp-section {
	padding: 40px 0 80px;
}
.ts-usp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.ts-usp-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 36px 32px;
	text-align: left;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-usp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--green-pale);
}
.ts-usp-icon {
	width: 52px;
	height: 52px;
	background: var(--green-pale);
	color: var(--green);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.ts-usp-card h3 {
	font-family: 'DM Serif Display', serif;
	font-size: 22px;
	color: var(--charcoal);
	margin-bottom: 12px;
	font-weight: 400;
}
.ts-usp-card p {
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ─── Section Header (fælles) ─────────────────── */
.section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 56px;
}
.section-header h2 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.15;
	color: var(--charcoal);
	margin-bottom: 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.section-header p {
	font-size: 17px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ─── Brancher ────────────────────────────────── */
.ts-branches {
	padding: 100px 0;
	background: var(--white);
}
.ts-branches-subheader {
	text-align: center;
	margin-bottom: 40px;
}
.ts-branches-subheader h3 {
	font-family: 'DM Serif Display', serif;
	font-size: 26px;
	color: var(--charcoal);
	margin-bottom: 8px;
	font-weight: 400;
}
.ts-branches-subheader p {
	font-size: 15px;
	color: var(--text-muted);
}

.ts-branches-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin-bottom: 64px;
}
.ts-branche-card {
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px 20px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.ts-branche-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--green);
	background: var(--white);
}
.ts-branche-icon {
	color: var(--green, #044737);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--green-pale, #e8f5f0);
	border-radius: 14px;
	margin-bottom: 4px;
	transition: background 0.3s ease, color 0.3s ease;
}
.ts-branche-icon svg {
	width: 28px;
	height: 28px;
}
.ts-branche-card:hover .ts-branche-icon {
	background: var(--green, #044737);
	color: var(--white, #fff);
}
.ts-branche-name {
	font-family: 'DM Serif Display', serif;
	font-size: 18px;
	color: var(--charcoal);
	font-weight: 400;
}
.ts-branche-sub {
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.ts-branches-cta {
	background: var(--green);
	color: var(--white);
	border-radius: var(--radius-xl);
	padding: 48px 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	position: relative;
	overflow: hidden;
}
.ts-branches-cta::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
	pointer-events: none;
}
.ts-branches-cta-text { position: relative; z-index: 1; }
.ts-branches-cta h3 {
	font-family: 'DM Serif Display', serif;
	font-size: 30px;
	color: var(--white);
	margin-bottom: 8px;
	font-weight: 400;
}
.ts-branches-cta p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.85);
}
.ts-branches-cta .btn-primary {
	background: var(--white);
	color: var(--green);
	position: relative;
	z-index: 1;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.ts-branches-cta .btn-primary:hover {
	background: var(--cream);
	color: var(--green);
	transform: translateY(-2px);
}

/* ─── Om (Anvendt af +100 virksomheder) ──────── */
.ts-about {
	padding: 100px 0;
	background: var(--cream);
}
.ts-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.ts-about-content h2 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.15;
	color: var(--charcoal);
	margin-bottom: 20px;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.ts-about-content p {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 28px;
}
.ts-about-visual img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* ─── Checklist (brugt i about & benefits) ───── */
.ts-checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 32px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ts-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: var(--text);
}
.ts-check-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

/* ─── Fordele (Benefits) ─────────────────────── */
.ts-benefits {
	padding: 100px 0;
	background: var(--white);
}
.ts-benefits-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.ts-benefits-content h2 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.15;
	color: var(--charcoal);
	margin-bottom: 20px;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.ts-benefits-content p {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 28px;
}
.ts-benefits-visual img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* ─── Footer ──────────────────────────────────── */
.site-footer {
	background: var(--green-dark);
	color: var(--white);
	padding: 72px 0 32px;
	margin-top: 0;
}
.site-footer a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s;
}
.site-footer a:hover {
	color: var(--white);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 56px;
	margin-bottom: 56px;
}
.footer-brand {
	margin-bottom: 16px;
}
.footer-brand-text-fallback {
	font-family: 'DM Serif Display', serif;
	color: var(--white);
	font-size: 24px;
}
.footer-col h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--white);
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.footer-col ul li a {
	font-size: 14px;
}
.footer-bottom {
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════════
   Responsive — Tablet
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.ts-hero { padding: 140px 0 80px; }
	.ts-hero .container { gap: 48px; }

	.ts-branches-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.ts-about-grid,
	.ts-benefits-grid {
		gap: 48px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

/* ═══════════════════════════════════════════════
   Responsive — Mobile
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
	/* Navigation */
	nav.site-nav .container {
		gap: 12px;
	}
	.nav-links {
		display: none;
	}
	.nav-ctas {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		padding: 20px 24px;
		flex-direction: column;
		gap: 12px;
		box-shadow: var(--shadow-md);
		border-top: 1px solid var(--border);
	}
	.nav-ctas.open {
		display: flex;
	}
	.nav-cta {
		width: 100%;
		justify-content: center;
	}
	.mobile-menu-btn {
		display: flex;
	}

	/* Hero */
	.ts-hero { padding: 120px 0 60px; }
	.ts-hero .container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.ts-hero h1 {
		font-size: 36px;
	}
	.ts-hero p {
		font-size: 16px;
	}
	.ts-hero .hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.ts-hero .hero-actions .btn-primary,
	.ts-hero .hero-actions .btn-secondary {
		width: 100%;
	}

	/* USP */
	.ts-usp-section { padding: 20px 0 60px; }
	.ts-usp-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Section header */
	.section-header h2 { font-size: 30px; }
	.section-header p { font-size: 15px; }

	/* Brancher */
	.ts-branches { padding: 64px 0; }
	.ts-branches-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.ts-branche-card {
		padding: 20px 12px;
	}
	.ts-branche-icon { width: 48px; height: 48px; }
	.ts-branche-icon svg { width: 24px; height: 24px; }
	.ts-branche-name { font-size: 15px; }

	.ts-branches-cta {
		padding: 32px 28px;
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}
	.ts-branches-cta h3 { font-size: 24px; }

	/* About & Benefits */
	.ts-about,
	.ts-benefits { padding: 64px 0; }
	.ts-about-grid,
	.ts-benefits-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	/* Sørg for at billedet altid vises ØVERST på mobil i benefits (hvor det i desktop er til venstre) */
	.ts-benefits-grid {
		display: flex;
		flex-direction: column;
	}
	.ts-benefits-grid .ts-benefits-visual { order: 1; }
	.ts-benefits-grid .ts-benefits-content { order: 2; }

	.ts-about-content h2,
	.ts-benefits-content h2 {
		font-size: 28px;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.container { padding: 0 20px; }
	.ts-hero h1 { font-size: 32px; }
	.section-header h2 { font-size: 26px; }
	.ts-branches-grid {
		gap: 10px;
	}
}

/* ─── EMBED-SEKTION (forside og branche-sider) ────── */
.ts-embed-section {
	padding: 120px 0 140px;
	background: var(--cream, #faf8f5);
	scroll-margin-top: 80px;
}
.ts-embed-section .container {
	max-width: 960px;
}
.ts-embed-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
}
.ts-embed-header .badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--green-pale, #e8f5f0);
	color: var(--green, #044737);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 20px;
}
.ts-embed-header .badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--green, #044737);
	border-radius: 50%;
}
.ts-embed-header h2 {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.15;
	color: var(--charcoal, #1a1a1a);
	margin: 0 0 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.ts-embed-header p {
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-muted, #6b6b6b);
	margin: 0;
}
.ts-embed-container {
	background: #fff;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 24px 60px rgba(4, 71, 55, 0.08);
	border: 1px solid rgba(4, 71, 55, 0.06);
}

@media (max-width: 768px) {
	.ts-embed-section { padding: 80px 0 100px; }
	.ts-embed-container { padding: 24px; border-radius: 16px; }
	.ts-embed-header { margin-bottom: 28px; }
}
