/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
  /* Colors - Red/Orange primary with neutral backgrounds */
  --primary-color: #e63946;
  --primary-dark: #d62828;
  --primary-light: #f48c96;

  --background-light: #f8f9fa;
  --background-white: #ffffff;

  --text-dark: #2b2d42;
  --text-medium: #4a4e69;
  --text-light: #6c757d;

  --border-light: #dee2e6;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing - 8px system */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-xxl: 96px;

  /* Breakpoints for reference */
  --breakpoint-mobile: 640px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #d63232 0%, #e85454 50%, #f06464 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-top-bar {
  height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-tagline-box-mobile {
  display: none;
}

.hero-bottom-bar {
  display: none;
}

.hero-content {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.hero-left {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px var(--spacing-lg);
  padding-right: 100px;
  position: relative;
}

.hero-text {
  color: white;
  margin-bottom: var(--spacing-xl);
}

.hero-tagline-box {
  background-color: #c9c8bb;
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  display: inline-block;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
}

.hero-name {
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin: var(--spacing-md) 0 0 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  font-style: italic;
}

.hero-logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-md);
  width: 100%;
  padding-right: 120px;
}

.hero-party-logo {
  height: 70px;
  width: auto;
}

.hero-a-logo {
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: 0;
  right: 20px;
}

.scroll-indicator {
  margin: 0;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding: 0;
  color: white;
  text-align: center;
  width: 100%;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.scroll-arrow {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  line-height: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.floating-scroll-indicator {
  position: fixed;
  right: 20px;
  bottom: 30px;
  background-color: rgba(214, 50, 50, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.floating-scroll-indicator:hover {
  background-color: rgba(214, 50, 50, 1);
  transform: scale(1.1);
}

.floating-scroll-indicator .scroll-arrow {
  animation: bounce 2s infinite;
  font-size: 2rem;
  color: white;
  margin: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 600px;
  }

  .hero-top-bar {
    height: auto;
    padding: 4px var(--spacing-sm);
  }

  .hero-tagline-box-mobile {
    display: inline-block;
    padding: 2px 8px;
  }

  .hero-tagline-box-mobile .hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .hero-content {
    flex-direction: column;
    min-height: 0;
    flex: 1;
  }

  .hero-left {
    flex: 0 0 auto;
    height: 40vh;
    min-height: 250px;
  }

  .hero-portrait {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }

  .hero-right {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-text {
    margin-bottom: var(--spacing-md);
  }

  .hero-right .hero-tagline-box {
    display: none;
  }

  .hero-bottom {
    padding-right: 100px;
  }

  .hero-logos {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }

  .hero-a-logo {
    width: 60px;
    height: 60px;
  }

  .hero-party-logo {
    height: 40px;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-name {
    font-size: 2.75rem;
  }

  .hero-slogan {
    font-size: 1rem;
  }

  .scroll-text {
    font-size: 1rem;
  }

  .scroll-arrow {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-name {
    font-size: 3.5rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .hero-a-logo {
    width: 100px;
    height: 100px;
  }

  .hero-party-logo {
    height: 55px;
  }
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */

section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

/* ===================================
   MÆRKESAGER / ISSUES SECTION
   =================================== */

.issues {
  background-color: var(--background-white);
}

.issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .issues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.issue-card {
  background-color: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.issue-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  margin: -1px -1px 0 -1px;
}

.issue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.issue-card:hover .issue-image img {
  transform: scale(1.05);
}

.issue-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.issue-card p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: var(--spacing-md);
  transition: all 0.3s ease;
}

.issue-card:hover .read-more {
  transform: translateX(4px);
}

/* ===================================
   ABOUT / OM MIG SECTION
   =================================== */

.about {
  background-color: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1.5fr;
  }
}

.about-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.about-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.about-text p {
  color: var(--text-medium);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.highlight-text {
  background-color: var(--background-light);
  padding: var(--spacing-sm);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  margin-top: var(--spacing-md);
}

.highlight-text strong {
  color: var(--primary-color);
}

/* ===================================
   CONTACT / KONTAKT SECTION
   =================================== */

.contact {
  background-color: var(--background-white);
}

.social-links-centered {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-link svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.social-link.facebook {
  color: #1877f2;
  background-color: #f0f7ff;
  border-color: #1877f2;
}

.social-link.facebook:hover {
  background-color: #1877f2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link.instagram {
  color: #e4405f;
  background-color: #fff0f3;
  border-color: #e4405f;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.local-areas {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--background-light);
  border-radius: 8px;
  color: var(--text-medium);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.local-areas strong {
  color: var(--text-dark);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background-color: var(--text-dark);
  color: white;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-logo-circle {
  height: 60px;
  width: auto;
}

.footer p {
  margin: 0;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 60px;
  }

  .footer-logo-circle {
    height: 70px;
  }
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
  background-color: var(--background-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-logo-a {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

@media (max-width: 640px) {
  .nav-content {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .nav-links {
    gap: var(--spacing-sm);
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.875rem;
  }
}

/* ===================================
   SUBPAGE STYLES
   =================================== */

.page-header {
  background: #CB202F;
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: clamp(140px, 30vw, 520px);
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  bottom: 0;
  background: linear-gradient(to right,
    rgba(230, 57, 70, 0.85) 0%,
    rgba(230, 57, 70, 0.85) 50%,
    rgba(230, 57, 70, 0.6) 80%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.page-header-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  background-color: white;
}

.page-header-content {
  position: relative;
  z-index: 3;
  width: min(55%, 900px);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-xl);
  box-sizing: border-box;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 0;
  color: #ffffff;
  width: 100%;
}

.page-subtitle {
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 0;
  padding: 0;
  color: white;
  width: 100%;
}

@media (max-width: 1200px) {
  .page-header {
    padding-right: clamp(100px, 25vw, 400px);
  }

  .page-header-content {
    width: min(60%, 800px);
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 900px) {
  .page-header {
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
  }

  .page-header-overlay {
    width: 65%;
    background: linear-gradient(to right,
      rgba(230, 57, 70, 0.85) 0%,
      rgba(230, 57, 70, 0.85) 60%,
      rgba(230, 57, 70, 0.4) 85%,
      transparent 100%);
  }

  .page-header-content {
    width: 70%;
  }

  .page-header-portrait {
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .page-header {
    min-height: 320px;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
  }

  .page-header-overlay {
    width: 100%;
    background: rgba(230, 57, 70, 0.85);
  }

  .page-header-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .page-header-portrait {
    right: 0;
    height: 60%;
    opacity: 0.2;
  }

  .page-header-logo-container {
    left: var(--spacing-sm);
    top: var(--spacing-sm);
    padding: 8px;
  }

  .page-header-logo {
    height: 60px;
  }
}

.content-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-white);
}

.content-wrapper {
  max-width: 900px;
}

.content-image {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  border-radius: 12px;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-text h2 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
  font-weight: 700;
}

.content-text h3 {
  color: var(--text-dark);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 600;
}

.content-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  font-size: 1.125rem;
}

.content-text ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.content-text li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
  font-size: 1.125rem;
}

.cta-box {
  background-color: var(--background-light);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  text-align: center;
}

.cta-box p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* ===================================
   UTILITY & ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
