/* =========================================
   Benly – huvudstilmall
   Klinisk, ren stil i vitt/blått
   ========================================= */

:root {
	--benly-blue: #0b5fa5;
	--benly-blue-dark: #073c6b;
	--benly-blue-light: #e8f2fb;
	--benly-teal: #17a398;
	--benly-text: #1f2933;
	--benly-gray: #6b7280;
	--benly-border: #e2e8f0;
	--benly-bg: #ffffff;
	--radius: 8px;
	--container-width: 1160px;
}

* { box-sizing: border-box; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--benly-text);
	background: var(--benly-bg);
	margin: 0;
	line-height: 1.6;
}

a { color: var(--benly-blue); text-decoration: none; }
a:hover { color: var(--benly-blue-dark); text-decoration: underline; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

h1, h2, h3 { color: var(--benly-blue-dark); line-height: 1.25; }
.page-title { font-size: 2rem; margin-bottom: 1rem; }
.section-title { font-size: 1.6rem; text-align: center; margin: 2.5rem 0 1.5rem; }

/* Top bar */
.top-bar {
	background: var(--benly-blue-dark);
	color: #fff;
	font-size: 0.85rem;
	text-align: center;
	padding: 6px 0;
}

/* Cookie banner */
.cookie-banner {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: var(--benly-blue-dark);
	color: #fff;
	padding: 14px 20px;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	z-index: 9999;
	font-size: 0.9rem;
}
.cookie-banner.show { display: flex; flex-wrap: wrap; }
.cookie-banner a { color: #fff; text-decoration: underline; }

/* Header */
.site-header {
	border-bottom: 1px solid var(--benly-border);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	position: relative;
}
.site-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--benly-blue-dark);
}
.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}
.main-navigation a {
	color: var(--benly-text);
	font-weight: 500;
}
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
}
.menu-toggle span {
	width: 24px; height: 2px; background: var(--benly-text);
}
.header-cart {
	font-weight: 600;
	color: var(--benly-blue-dark);
}
.cart-count {
	background: var(--benly-blue);
	color: #fff;
	border-radius: 50%;
	padding: 1px 7px;
	font-size: 0.75rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-weight: 600;
	border: none;
	cursor: pointer;
}
.btn-primary {
	background: var(--benly-blue);
	color: #fff;
}
.btn-primary:hover { background: var(--benly-blue-dark); color: #fff; text-decoration: none; }
.btn-small { padding: 6px 16px; font-size: 0.85rem; }

/* Hero */
.hero { background: var(--benly-blue-light); padding: 60px 0; }
.hero-inner {
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.hero-text { flex: 1 1 400px; }
.hero-text h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.hero-text p { color: var(--benly-gray); font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-image {
	flex: 1 1 320px;
	display: flex;
	justify-content: center;
}
.hero-image img {
	width: 100%;
	max-width: 460px;
	height: auto;
	border-radius: var(--radius);
	display: block;
}

/* USP bar */
.usp-bar { background: #fff; border-bottom: 1px solid var(--benly-border); padding: 30px 0; }
.usp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.usp-item {
	display: block;
	text-align: center;
	padding: 10px 12px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.usp-item:hover {
	background: var(--benly-blue-light);
	text-decoration: none;
	transform: translateY(-2px);
}
.usp-item strong { display: block; color: var(--benly-blue-dark); margin-bottom: 4px; }
.usp-item span { color: var(--benly-gray); font-size: 0.9rem; }

/* Trust section */
.trust-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.trust-item {
	background: var(--benly-blue-light);
	border-radius: var(--radius);
	padding: 24px;
}
.trust-icon { width: 56px; height: 56px; margin-bottom: 12px; }

/* Bilder i sidinnehåll (t.ex. Om oss) */
.content-image {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: var(--radius);
	display: block;
	margin: 0 auto 1.5rem;
}

/* Logotyp i headern */
.site-branding .custom-logo-link img {
	height: 44px;
	width: auto;
	display: block;
}

/* Page content */
.page-content { padding: 50px 20px; max-width: 860px; }
.page-body h2 { margin-top: 2rem; }
.legal-note { font-size: 0.85rem; color: var(--benly-gray); border-top: 1px solid var(--benly-border); padding-top: 12px; margin-top: 2rem; }

.benly-table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.benly-table th, .benly-table td { text-align: left; padding: 8px 12px; border: 1px solid var(--benly-border); }
.benly-table th { background: var(--benly-blue-light); width: 200px; }

/* FAQ */
.faq-item {
	border: 1px solid var(--benly-border);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 10px;
}
.faq-item summary { font-weight: 600; cursor: pointer; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.benly-contact-form label { display: block; margin-top: 14px; font-weight: 600; }
.benly-contact-form input,
.benly-contact-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--benly-border);
	border-radius: var(--radius);
	margin-top: 4px;
	font-family: inherit;
}
.benly-contact-form button { margin-top: 18px; }
.form-message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.form-success { background: #e5f7ef; color: #146c43; }
.form-error { background: #fdecea; color: #b3261e; }

/* Footer */
.site-footer { background: var(--benly-blue-dark); color: #dbe7f3; margin-top: 60px; }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding: 50px 20px 30px;
}
.footer-widget-title { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 6px; }
.footer-menu a { color: #dbe7f3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 20px;
	font-size: 0.8rem;
	color: #b7c9dc;
}

/* Post grid (blogg) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0; }
.post-card { border: 1px solid var(--benly-border); border-radius: var(--radius); padding: 18px; }

/* Responsive */
@media (max-width: 900px) {
	.usp-grid { grid-template-columns: repeat(2, 1fr); }
	.trust-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.main-navigation ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--benly-border);
		padding: 16px 20px;
		gap: 4px;
		box-shadow: 0 12px 24px rgba(7,60,107,0.12);
		z-index: 500;
	}
	.main-navigation ul li { border-bottom: 1px solid var(--benly-border); }
	.main-navigation ul li:last-child { border-bottom: none; }
	.main-navigation ul a { display: block; padding: 12px 4px; }
	.main-navigation.open ul { display: flex; }
}
