/* =========================================
   Aranga & Frokostseminarer.no - Nytt Design
   ========================================= */

:root {
  /* Ny Fargepalett: Profesjonell & Tech */
  --primary: #003366; /* Dyp Blå (Tekst/Header) */
  --accent: #007bff;  /* Frisk Blå (Knapper/Lenker) */
  --accent-hover: #0056b3;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #ffffff;      /* Ren Hvit Bakgrunn */
  --bg-alt: #f4f7f6;  /* Lys Grå for Seksjoner */
  --border: #e0e0e0;
  
  /* Fonter & Typografi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Spacing & Layout */
  --container: 1100px;
  --gap: 24px;
  --radius: 8px; /* Litt skarpere kanter */
  --shadow: 0 4px 12px rgba(0, 51, 102, 0.1); /* Mykere skygge */
}

/* Base Styles */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-family: var(--font-sans); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.5rem; }
.lead { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.small { font-size: 0.875rem; color: var(--text-muted); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; text-align: center; transition: background 0.2s ease, transform 0.1s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-hover); color: white; }
.btn.soft { background: var(--bg-alt); color: var(--primary); }
.btn.soft:hover { background: var(--border); }
.btn.full { width: 100%; display: block; }

/* Utilities */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pill { display: inline-block; padding: 4px 12px; background: var(--bg-alt); color: var(--primary); border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-right: 8px; margin-bottom: 8px; }

/* Header & Nav */
.site-header { background: white; border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.brand-mark { background: var(--primary); color: white; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 1.125rem; }
.nav { display: flex; align-items: center; gap: var(--gap); }
.nav a { color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.nav a:hover, .nav a[data-page].active { color: var(--accent); }
.nav-cta { background: var(--primary); color: white !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: #002244; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); margin-bottom: 4px; transition: 0.3s; }
.nav-toggle span:last-child { margin-bottom: 0; }

/* Hero - Nytt Design med Bakgrunnsbilde */
.hero { 
  background-color: var(--primary); 
  background-image: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.95)), url('assets/hero.jpg'); /* Bilderef! */
  background-size: cover;
  background-position: center;
  color: white; 
  padding: 100px 0; 
}
.hero h1 { color: white; font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero .lead { color: rgba(255,255,255,0.8); }
.hero .eyebrow { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 60px; } /* Forenklet for SEO-fokus */
.hero-actions { display: flex; gap: 16px; margin-bottom: 30px; }
.hero-meta { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.hero-meta .pill { background: rgba(255,255,255,0.1); color: white; }

/* Cards & Lists */
.card { background: white; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 51, 102, 0.15); }
.card h3 { color: var(--primary); margin-bottom: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-muted); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hero .checklist li { color: rgba(255,255,255,0.7); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: none; }

/* Inline CTA */
.inline-cta { background: var(--bg-alt); padding: 40px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: var(--gap); margin-top: 60px; }
.inline-cta h2 { margin-bottom: 0.5rem; }
.inline-cta p { margin-bottom: 0; color: var(--text-muted); }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 60px 0; font-size: 0.9375rem; border-top: 4px solid var(--accent); }
.footer-brand { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.footer-links { margin-top: 2rem; display: flex; gap: var(--gap); }
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: white; }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .grid-2, .cards, .grid-3 { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  .hero { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: var(--gap); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.active { display: flex; }
  .nav-toggle { display: block; }
  .hero-actions { flex-direction: column; }
}