/* =============================================
   AFTENSTRIKK AS - Unique Modern Blog Design
   Color Palette: Deep Violet-Blue Theme
   Unique Layout: Asymmetric Magazine + Sidebar + Zigzag Sections
   Fully Responsive | No Images | Text & Color Focused
   ============================================= */

:root {
  --primary: #5B2C6F;
  --primary-dark: #4A1C5A;
  --secondary: #1E3A8A;
  --accent: #A78BFA;
  --accent-light: #C4B5FD;
  --bg: #F0F4F8;
  --bg-alt: #E0E7FF;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #CBD5E1;
  --shadow: 0 10px 15px -3px rgb(91 44 111 / 0.1), 0 4px 6px -4px rgb(91 44 111 / 0.1);
  --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* Header & Navigation - Unique Sticky with Glassmorphism */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: var(--transition);
}

nav a:hover:after {
  width: 100%;
}

/* Mobile Menu - CSS Only Unique Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

#menu-toggle:checked ~ nav {
  display: flex;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hero Section - Asymmetric Unique Design */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-visual {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-visual-inner {
  background: white;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-visual-inner h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  background: var(--accent-light);
  color: var(--primary-dark);
}

/* Main Content Layout - Asymmetric Grid + Sidebar */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Sidebar - Unique Sticky */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.category-list a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.category-list .count {
  margin-left: auto;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Articles Grid - Asymmetric Magazine Style */
.articles-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Unique Asymmetric Cards */
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.article-card.featured {
  grid-column: span 2;
  grid-row: span 1;
}

@media (max-width: 768px) {
  .article-card.featured {
    grid-column: span 1;
  }
}

.card-accent {
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-category {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.article-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-dark);
}

.excerpt {
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.75rem;
  color: var(--primary);
}

/* Full Article Sections - Zigzag Unique Reading Experience */
.full-article {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  scroll-margin-top: 120px;
}

.full-article h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-meta-full {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.full-article h3 {
  color: var(--secondary);
  margin: 2rem 0 1rem;
}

.full-article p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.back-to-grid {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.back-to-grid:hover {
  background: var(--accent-light);
}

/* Long Intro Text Section */
.intro-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.intro-section h2 {
  margin-bottom: 1.5rem;
}

.intro-section p {
  font-size: 1.1rem;
  max-width: 820px;
}

/* Contact Form - Clean Modern */
.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: #FAFBFC;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.08);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgb(91 44 111 / 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -4px rgb(91 44 111 / 0.35);
}

/* Thank You Page */
.thankyou-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.thankyou-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.thankyou-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.disclaimer-box {
  background: #FEF3C7;
  border-left: 5px solid #D97706;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #E0E7FF;
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: #C4B5FD;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Legal Pages */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.legal-section p, .legal-section ul {
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.6rem;
}

/* Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Print & Accessibility */
@media print {
  header, footer, .sidebar, .cta-button {
    display: none;
  }
}