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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --surface: #ffffff;
  --border: #e5e5e7;
  --text: #1a1a1a;
  --muted: #6e6e73;
  --accent: #0066cc;
  --accent-hover: #0055aa;
  --dot: #e63329;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg: #111111;
  --bg-alt: #1c1c1e;
  --surface: #1c1c1e;
  --border: #2c2c2e;
  --text: #f5f5f7;
  --muted: #98989f;
  --accent: #2997ff;
  --accent-hover: #5ab3ff;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }

/* NAV */
header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.navbar { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); letter-spacing: -0.5px; white-space: nowrap; }
.dot { color: var(--dot); }
.nav-links { list-style: none; display: flex; gap: 0.25rem; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-controls { display: flex; gap: 0.25rem; margin-left: auto; }
.ctrl-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0.5rem; border-radius: 6px; transition: background 0.2s; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.ctrl-btn:hover { background: var(--bg-alt); }
.hamburger { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); padding: 0.5rem; min-width: 40px; min-height: 40px; }
.mobile-menu { display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 1.5rem 1rem; }
.mobile-menu a { color: var(--muted); text-decoration: none; padding: 0.75rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); display: block; }
.mobile-menu.open { display: flex; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 6rem 1.5rem 5rem; text-align: center; }
.hero-deco { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,102,204,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-eyebrow { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: clamp(-1px, -0.03em, -2px); line-height: 1.05; margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(0.95rem, 2.5vw, 1.1rem); color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* SECTIONS */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 2.5rem; }

/* NYHETER */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.news-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0.5rem 0 0.75rem; }
.news-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.read-more { color: var(--accent); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* OM OSS */
.om-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.om-text h2 { margin-bottom: 1rem; }
.om-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.check-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.check-list li { font-size: 0.9rem; font-weight: 500; }
.om-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); letter-spacing: -1px; }
.stat-label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; font-weight: 500; }

/* TJENESTER */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.875rem; }

/* OPPSKRIFTER */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.25rem; }
.recipe-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.recipe-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.recipe-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.recipe-card h3 { font-weight: 600; margin-bottom: 0.5rem; }
.recipe-card p { color: var(--muted); font-size: 0.875rem; }

/* FAQ */
.faq-container { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.5rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.1rem; color: var(--muted); font-size: 0.9rem; }

/* FOOTER */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-top { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; max-width: 240px; }
.footer-contact h4, .footer-social h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--muted); }
.footer-contact p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.hours { margin-top: 0.75rem; }
.social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-btn { display: inline-block; font-size: 0.88rem; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.social-btn:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 1.25rem 1.5rem; font-size: 0.82rem; color: var(--muted); }

/* ATTESTER */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.2s, transform 0.2s; }
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.testimonial-stars { font-size: 1rem; letter-spacing: 1px; }
.testimonial-text { color: var(--muted); font-size: 0.95rem; line-height: 1.65; font-style: italic; flex: 1; }
.testimonial-author { margin-top: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.testimonial-name { display: block; font-weight: 700; font-size: 0.9rem; }
.testimonial-role { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

/* KONTAKTSKJEMA */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; }
.contact-details p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.contact-details a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.contact-details a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form .form-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 1.25rem; }
[data-theme="dark"] .contact-success { background: #1b2e1c; border-color: #2e7d32; color: #81c784; }
.contact-error { background: #fff0f0; border: 1px solid #ffc0c0; color: #c0392b; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 1.25rem; }
[data-theme="dark"] .contact-error { background: #2c1010; border-color: #7a2020; color: #f28b82; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; min-height: 36px; }

/* HONEYPOT (invisible to humans, bots fill it) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.15); z-index: 9999; max-width: 560px; width: calc(100% - 2rem); transition: opacity 0.3s, transform 0.3s; }
.cookie-banner.hidden { opacity: 0; transform: translateX(-50%) translateY(120%); pointer-events: none; }
.cookie-banner p { font-size: 0.88rem; color: var(--muted); margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* NEWS SHOW MORE */
.news-hidden { display: none; }
.news-more-wrap { margin-top: 2rem; text-align: center; }

/* NAV ACTIVE STATE (scroll-based highlight) */
.nav-links a.active { color: var(--text); }

/* ARTICLE PAGE */
.article-page { min-height: 60vh; padding: 3rem 1.5rem 5rem; }
.article-container { max-width: 720px; margin: 0 auto; }
.article-back { display: inline-block; color: var(--accent); text-decoration: none; font-size: 0.88rem; font-weight: 600; margin-bottom: 2rem; transition: opacity 0.2s; }
.article-back:hover { opacity: 0.7; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.article-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.article-meta .news-date { display: inline; }
.read-time { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.article-container h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 2rem; line-height: 1.2; }
.article-body { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2, .article-body h3 { color: var(--text); margin: 2rem 0 0.75rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--accent); }
.article-body strong { color: var(--text); }

/* ARTICLE PREV / NEXT NAV */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-nav a { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.article-nav a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-nav-next a { text-align: right; }
.article-nav-dir { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.article-nav-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
@media (max-width: 480px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next a { text-align: left; }
}

/* NEWS CARD IMAGE */
.news-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }

/* ==============================
   RESPONSIVE
   ============================== */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .om-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-controls { margin-left: auto; }
  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .om-layout { grid-template-columns: 1fr; gap: 2rem; }
  .section h2 { margin-bottom: 1.75rem; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .navbar { padding: 0 1rem; gap: 0.75rem; }
  .mobile-menu { padding: 0.5rem 1rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.75rem 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .news-card, .service-card, .recipe-card { padding: 1.25rem; }
  .stat-num { font-size: 1.6rem; }
  .footer-top { padding: 2rem 1rem; }
  .footer-bottom { padding: 1rem; }
  .faq-item summary { padding: 0.9rem 1.1rem; font-size: 0.9rem; }
  .faq-item p { padding: 0 1.1rem 0.9rem; }
  .contact-form { padding: 1.25rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; bottom: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
