/*
Theme Name: Sjekk håndverker
Theme URI: https://sjekkhandverker.no
Description: Tema for sjekkhandverker.no — faktabasert oppslag på håndverker-/byggefirma.
Version: 1.0.0
Author: LAKI
Author URI: https://arnsteinlarsen.no
License: Private
Text Domain: sjekk-handverker
*/

:root {
  --navy: #1E3A5F;
  --gold: #C9A84C;
  --cream: #F9F7F4;
  --text: #1C1C1E;
  --muted: #6B6B70;
  --border: #E2DDD7;
  --white: #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--navy); padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.site-logo span { color: var(--gold); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--gold); }

.site-main { min-height: calc(100vh - 120px); }
.content-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.content-narrow { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); text-align: center; padding: 1.5rem; font-size: 0.85rem; margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer-content { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0 1rem; margin: 0 auto 0.5rem; max-width: 900px; text-align: left; }
.site-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0 0 0.75rem; max-width: 560px; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.site-footer-nav a:hover { color: var(--gold); }

/* Breadcrumbs (Rank Math) */
.sh-breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.sh-breadcrumbs a { color: var(--navy); }
.sh-breadcrumbs a:hover { text-decoration: underline; }
.sh-breadcrumbs .rank-math-breadcrumb p { margin: 0; }

/* Homepage hero */
.home-hero { background: var(--navy); padding: 3rem 1.5rem 2.5rem; text-align: center; color: var(--white); }
.home-hero h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 700; margin-bottom: 0.75rem; }
.home-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 580px; margin: 0 auto 2rem; }
/* gjør plugin-søkeboksen lesbar på navy hero */
.home-hero .sh-forbehold { color: rgba(255,255,255,0.6); }

/* How it works */
.how-it-works { background: var(--white); padding: 2.5rem 1.5rem; }
.how-it-works h2 { text-align: center; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.step { text-align: center; }
.step-number { width: 44px; height: 44px; background: var(--gold); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 0.75rem; }
.step h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* What you get */
.what-you-get { padding: 2.5rem 1.5rem; max-width: 900px; margin: 0 auto; }
.what-you-get h2 { font-size: 1.3rem; color: var(--navy); margin-bottom: 1.25rem; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.data-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.data-item::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Guide clusters */
.guide-clusters { background: var(--white); padding: 2.5rem 1.5rem; border-top: 1px solid var(--border); }
.guide-clusters-inner { max-width: 900px; margin: 0 auto; }
.guide-cluster { margin-bottom: 2rem; }
.guide-cluster h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.35rem; }
.guide-cluster p.cluster-intro { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.guide-card { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--white); transition: box-shadow .2s, transform .2s; }
.guide-card:hover { box-shadow: 0 4px 16px rgba(30,58,95,0.10); transform: translateY(-2px); }
.guide-card a { color: var(--navy); font-weight: 600; font-size: 0.98rem; }
.guide-card a:hover { color: var(--gold); }
.guide-card span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }

/* Page title strip */
.page-title-strip { background: var(--navy); padding: 2rem 1.5rem; color: var(--white); }
.page-title-strip h1 { max-width: 900px; margin: 0 auto; font-size: 1.6rem; }

/* Article / page body */
.article-body { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-body h2 { font-size: 1.3rem; color: var(--navy); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.article-body h3 { font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--navy); }
.article-body .callout { background: var(--cream); border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; }
.article-body .sh-cta { background: var(--navy); color: #fff; padding: 1.25rem 1.5rem; border-radius: 10px; margin: 1.75rem 0; }
.article-body .sh-cta a { color: var(--gold); font-weight: 600; }

/* FAQ (fra _sh_faq-meta) */
.sh-faq { max-width: 760px; margin: 1rem auto 0; }
.sh-faq h2 { font-size: 1.3rem; color: var(--navy); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 0.4rem; }
.faq-answer { color: #444; font-size: 0.95rem; }

/* Blog/guide archive */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.post-card { background: var(--white); border-radius: 8px; padding: 1.5rem; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 4px 16px rgba(30,58,95,0.1); transform: translateY(-2px); }
.post-card h2 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.post-card h2 a { color: var(--navy); }
.post-excerpt { font-size: 0.9rem; color: #444; line-height: 1.5; }
.read-more { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--gold); }

/* Annonse-slot placeholder (consent-gated; AdSense wires inn senere) */
.sh-ad-slot { margin: 1.75rem auto; max-width: 760px; min-height: 90px; display: flex; align-items: center; justify-content: center; color: #b9b3a8; font-size: 0.78rem; border: 1px dashed var(--border); border-radius: 8px; }

@media (max-width: 600px) {
  .page-title-strip h1 { font-size: 1.35rem; }
  .home-hero h1 { font-size: 1.5rem; }
}
