/* Olofssons EL – huvudstilmall */

:root {
	--background: #ffffff;
	--foreground: #1a2744;
	--card: #f3f6fb;
	--primary: #1a2744;
	--muted: #ebf0f8;
	--muted-foreground: #5a7199;
	--accent: #3b82f6;
	--accent-hover: #4f8ff7;
	--border: rgba(26, 39, 68, 0.11);
	--font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-serif: 'Libre Baskerville', Georgia, serif;
	--header-h: 4rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; }
p { margin: 0; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { display: block; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .container { padding-inline: 3rem; } }

.text-accent { color: var(--accent); }

/* Eyebrow */
.eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .75rem; }
.eyebrow-accent { color: var(--accent); margin-bottom: 1rem; }

/* Knappar */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; line-height: 1.25rem; transition: background-color .15s, border-color .15s, color .15s; cursor: pointer; border: 0; }
.btn-sm { padding: .5rem 1.25rem; }
.btn-lg { padding: .75rem 1.5rem; }
.btn-xl { padding: 1rem 2rem; font-weight: 600; }
.btn-block { justify-content: center; padding: .5rem 1rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); color: #fff; }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--accent); white-space: nowrap; }
.btn-white:hover { background: rgba(255,255,255,.9); }
.btn-arrow .arrow { transition: transform .15s; }
.btn-arrow:hover .arrow { transform: translateX(4px); }

/* Sidhuvud */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 2px 16px rgba(26,39,68,.10); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; }
.brand-logo { height: 1.75rem; width: auto; max-width: 12rem; object-fit: contain; }
@media (min-width: 640px) { .brand-logo { height: 2rem; max-width: 14rem; } }

.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav .nav-list { display: flex; gap: 2rem; }
.main-nav .nav-list a { font-size: .875rem; color: var(--muted-foreground); transition: color .15s; }
.main-nav .nav-list a:hover { color: var(--foreground); }
@media (min-width: 768px) { .main-nav { display: flex; } }

.menu-toggle { display: inline-flex; padding: .5rem; margin-right: -.5rem; background: none; border: 0; color: var(--foreground); cursor: pointer; }
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline; }
@media (min-width: 768px) { .menu-toggle, .mobile-menu { display: none !important; } }

.mobile-menu { background: var(--background); border-top: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu[hidden] { display: none; }
.mobile-list { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-list a { font-size: 1rem; }

/* Hero */
.hero { padding-top: var(--header-h); min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero-content { display: flex; flex-direction: column; justify-content: center; background: var(--primary); padding: 5rem 2rem; }
@media (min-width: 1024px) { .hero-content { padding: 8rem 4rem; } }
.hero-content .eyebrow { margin-bottom: 1.5rem; font-weight: 500; }
.hero-title { font-size: 3rem; line-height: 1.08; color: #fff; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-lead { color: rgba(255,255,255,.6); max-width: 28rem; line-height: 1.625; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-stats { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-num { font-family: var(--font-serif); font-weight: 700; color: var(--accent); font-size: 1.5rem; line-height: 2rem; }
@media (min-width: 1024px) { .stat-num { font-size: 1.875rem; line-height: 2.25rem; } }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .25rem; }

.hero-media { position: relative; overflow: hidden; background: var(--muted); height: 16rem; order: 2; }
@media (min-width: 1024px) { .hero-media { height: auto; } }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero-slide.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,39,68,.2), transparent); }
.hero-badge, .hero-dots { display: none; }
@media (min-width: 1024px) {
	.hero-badge { display: block; position: absolute; bottom: 2.5rem; right: 2.5rem; background: #fff; padding: 1rem 1.25rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); max-width: 210px; }
	.hero-dots { display: flex; position: absolute; bottom: 2.5rem; left: 2.5rem; gap: .375rem; }
}
.badge-label { font-size: .75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
.badge-value { font-size: .875rem; font-weight: 600; }
.dot { height: 2px; width: 12px; background: rgba(255,255,255,.35); transition: all .5s; }
.dot.is-active { width: 24px; background: #fff; }

/* CTA */
.cta-strip { background: var(--accent); padding-block: 4rem; }
.cta-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
@media (min-width: 1024px) { .cta-inner { flex-direction: row; } }
.cta-title { font-size: 1.875rem; line-height: 2.25rem; color: #fff; }
@media (min-width: 1024px) { .cta-title { font-size: 2.25rem; line-height: 2.5rem; } }
.cta-text { color: rgba(255,255,255,.7); margin-top: .5rem; font-size: .875rem; }

/* Sektioner */
.section { padding-block: 6rem; }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }
.section-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-title { font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 1024px) { .section-title { font-size: 3rem; line-height: 1.1; } }
.section-intro { color: var(--muted-foreground); max-width: 24rem; line-height: 1.625; font-size: .875rem; }

/* Tjänster */
.services-grid { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--background); padding: 2rem; transition: background-color .3s; }
.service-card:hover { background: var(--primary); }
.service-icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,.1); color: var(--accent); margin-bottom: 1.5rem; transition: background-color .15s, color .15s; }
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-title { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: .75rem; transition: color .15s; }
.service-card:hover .service-title { color: #fff; }
.service-desc { font-size: .875rem; color: var(--muted-foreground); line-height: 1.625; transition: color .15s; }
.service-card:hover .service-desc { color: rgba(255,255,255,.6); }

/* Om oss */
.about { background: var(--card); padding-block: 6rem; }
@media (min-width: 1024px) { .about { padding-block: 8rem; } }
.about-inner { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-inner { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--muted); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-emblem { display: none; }
@media (min-width: 1024px) {
	.about-emblem { display: block; position: absolute; bottom: -1.5rem; right: -1.5rem; width: 8rem; height: 8rem; background: #fff; padding: .5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
	.about-emblem img { width: 100%; height: 100%; object-fit: contain; }
}
.about-title { margin-bottom: 1.5rem; line-height: 1.25; }
.about-title em { font-weight: 400; }
.about-text { color: var(--muted-foreground); line-height: 1.625; font-size: .875rem; max-width: 28rem; }
.about-text p + p { margin-top: 1rem; }
.facts { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.facts dt { font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
.facts dd { font-size: .875rem; font-weight: 500; }

/* Projekt */
.projects-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-body { padding: 1.5rem; }
.project-cat { font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.project-title { font-size: 1.125rem; line-height: 1.75rem; margin: .75rem 0 .5rem; }
.project-desc { font-size: .875rem; color: var(--muted-foreground); line-height: 1.625; }

/* Kontakt */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-title { margin-bottom: 2rem; line-height: 1.25; }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,.1); color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: .75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-value { font-size: .875rem; font-weight: 500; transition: color .15s; }
a.contact-value:hover { color: var(--accent); }

.career { background: var(--primary); color: #fff; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; scroll-margin-top: 6rem; }
@media (min-width: 1024px) { .career { padding: 2.5rem; } }
.career-title { font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .career-title { font-size: 2.25rem; line-height: 2.5rem; } }
.career-text { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.625; max-width: 28rem; }
.career-btn { justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1rem 1.5rem; }

/* Sidfot */
.site-footer { background: var(--primary); color: #fff; padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem; }
@media (min-width: 1024px) { .footer-inner { flex-direction: row; align-items: center; } }
.footer-logo { display: inline-flex; background: #fff; padding: .375rem; margin-bottom: .75rem; }
.footer-logo img { height: 1.75rem; width: auto; max-width: 13rem; object-fit: contain; }
.footer-meta { font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-list { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-list a { font-size: .75rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-list a:hover { color: #fff; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); }

/* Undersidor och inlägg */
.page-main { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 6rem; min-height: 70vh; }
.content-wrap { max-width: 50rem; }
.entry-title { margin-bottom: 2rem; }
.entry-meta { font-size: .75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin: -1rem 0 2rem; }
.entry-thumb { margin-bottom: 2rem; }
.entry-content { line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; list-style: revert; }
.entry-content img { height: auto; }
.post-list { display: grid; gap: 2.5rem; }
.post-item { padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.post-item-title { font-size: 1.5rem; margin-bottom: 1rem; }
.post-item-title a:hover { color: var(--accent); }
.post-item .entry-meta { margin: 0 0 1rem; }
.post-item-excerpt { color: var(--muted-foreground); }
.nav-links { display: flex; gap: 1rem; margin-top: 3rem; font-size: .875rem; }
.nav-links .current { color: var(--accent); font-weight: 600; }

/* WordPress-standardklasser */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: .8125rem; color: var(--muted-foreground); margin-top: .5rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
