/* Socialdemokraterna i Åstorp - Hemsida */

/* Fonter – Grafisk profil "Rosen" */
@font-face {
  font-family: 'Ros Display';
  src: url('fonts/RosDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir-Heavy.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --s-red: #ED1B34;
  --s-red-dark: #AD143D;
  --s-red-light: #FF1A29;
  --s-dark-red: #660027;
  --s-deep-red: #3D0019;
  --white: #FFFFFF;
  --gray-100: #F5E9E1;
  --gray-200: #EDE0D7;
  --gray-300: #DDD0C6;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --gray-900: #212529;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
}

/* Scroll offset for sticky header */
html {
  scroll-padding-top: 100px;
}

a {
  color: var(--s-red-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--s-red-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--s-red);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo {
  display: flex;
  align-items: center;
}

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

.tagline {
  font-size: 1.17rem;
  color: #FFFFFF;
  margin: 0;
  font-weight: 700;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

nav a {
  color: var(--white);
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.2s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
    padding-top: 15px;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav a {
    display: block;
    padding: 12px 15px;
  }
}


.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 5px;
  font-family: 'Avenir', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-white {
  background: var(--white);
  color: var(--s-red-dark);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--s-red-dark);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--s-red-dark);
  color: var(--white);
}

.btn-red:hover {
  background: var(--s-red-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--s-red);
  border: 2px solid var(--s-red);
}

.btn-outline:hover {
  background: var(--s-red);
  color: var(--white);
}

/* Main Content */
main {
  padding: 60px 0;
}

section {
  margin-bottom: 60px;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  font-family: 'Ros Display', 'Avenir', sans-serif;
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--s-red);
  display: inline-block;
  line-height: 1.1;
}

h3 {
  font-family: 'Ros Display', 'Avenir', sans-serif;
  font-size: 1.4rem;
  color: var(--gray-800);
  margin-bottom: 15px;
  line-height: 1.1;
}

p {
  margin-bottom: 15px;
  color: var(--gray-800);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--s-red);
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--s-red);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--s-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--s-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Policy sections */
.policy-section {
  background: var(--gray-100);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 5px solid var(--s-red);
}

.policy-section h3 {
  color: var(--s-red);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.policy-section p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Styrelse/Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.board-member {
  background: var(--white);
  border: 2px solid var(--s-red);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease;
}

.board-email {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.board-email a {
  color: var(--gray-600);
  word-break: break-all;
}

.board-email a:hover {
  color: var(--s-red);
}

.board-member:hover {
  transform: translateY(-3px);
}

.board-member.chair {
  border: 2px solid var(--s-red);
  grid-column: span 1;
}

.board-avatar {
  width: 80px;
  height: 80px;
  background: var(--s-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2rem;
  color: var(--white);
}

.board-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.board-member h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 5px;
  border: none;
  padding-bottom: 0;
  display: block;
}

.board-member .role {
  color: var(--s-red-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Calendar/Table */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.calendar-table th,
.calendar-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.calendar-table th {
  background: var(--s-red-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-table th:first-child {
  text-align: left;
  padding-left: 20px;
}

.calendar-table td:first-child {
  text-align: left;
  padding-left: 20px;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-100);
}

.calendar-table tr:hover td {
  background: var(--gray-100);
}

.calendar-table tr:hover td:first-child {
  background: var(--gray-200);
}

.calendar-table td {
  font-size: 0.9rem;
}

/* Responsive table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .calendar-table th,
  .calendar-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
}

/* Introduction text */
.intro {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.9;
  position: relative;
  padding-left: 25px;
  border-left: 3px solid var(--s-red);
}

.intro a,
.card a {
  text-decoration: underline;
}

/* Quote/Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--s-red) 0%, var(--s-red-dark) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 40px 0;
}

.highlight-box h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.highlight-box p {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.highlight-box .btn-white {
  color: var(--s-red-dark);
}

.highlight-box .btn-white:hover {
  color: var(--s-red-dark);
}

/* QR code in highlight boxes */
.highlight-box-qr {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.highlight-box-qr .highlight-box-content {
  flex: 1;
}

.highlight-box-qr p {
  max-width: none;
  margin-left: 0;
}

.highlight-box-qr .qr-code {
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

@media (max-width: 768px) {
  .highlight-box-qr {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer */
footer {
  background: var(--s-deep-red);
  color: var(--white);
  padding: 50px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--s-red);
  display: inline-block;
}

.footer-section p,
.footer-section a {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-section .btn-red {
  color: var(--white);
  background: var(--s-red-dark);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--s-dark-red);
  color: #B199A3;
  font-size: 0.9rem;
}

.footer-bottom p {
  color: #B199A3;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--s-red);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* Page header for subpages */
.page-header {
  background: var(--s-red-dark);
  color: var(--white);
  padding: 15px 20px;
}

.page-header h2 {
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.page-header p {
  color: #FFFFFF;
  font-size: 0.9rem;
  margin: 0;
}

/* Section alternating backgrounds */
.section-alt {
  background: var(--gray-100);
  padding: 60px 0;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Legend for calendar */
.calendar-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 15px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* News/Updates Section */
.news-section {
  background: var(--gray-100);
  padding: 40px 0;
  margin: 0 -20px 30px -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-card-image {
  height: 180px;
  display: block;
  position: relative;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.news-card-content {
  padding: 20px;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--s-red-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.news-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 15px;
}

.news-card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--s-red-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-card .read-more::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

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

/* Section divider */
.section-divider {
  text-align: center;
  margin: 60px 0;
}

.section-divider::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--s-red);
  border-radius: 2px;
}

/* Better section headings */
section > h2 {
  position: relative;
  display: inline-block;
}

/* Stats banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin: 40px 0;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--s-red);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick links grid */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  color: var(--gray-800);
}

.quick-link:hover {
  border-color: var(--s-red);
  color: var(--s-red);
  transform: translateX(5px);
}

.quick-link-icon {
  width: 45px;
  height: 45px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.quick-link-svg {
  width: 28px;
  height: 28px;
}

.quick-link:hover .quick-link-icon {
  background: var(--s-red);
}

.quick-link:hover .quick-link-svg {
  filter: brightness(0) invert(1);
}

/* S-kvinnor page – grafisk profil */
.s-kvinnor-page {
  --sk-lila: #a9006a;
  --sk-rosa: #e16096;
  --sk-ljusrosa: #eecce1;
  --sk-orange: #e99364;
  --sk-symbol: #e89ec5;
}

.s-kvinnor-page .page-header {
  background: var(--sk-lila);
}

.s-kvinnor-page h2 {
  border-bottom-color: var(--sk-lila);
}

.s-kvinnor-page .card::before {
  background: var(--sk-rosa);
}

.s-kvinnor-page .card h3 {
  color: var(--sk-lila);
}

.s-kvinnor-page .card h3::before {
  background: var(--sk-lila);
}

.s-kvinnor-page .board-avatar {
  background: var(--sk-rosa);
}

.s-kvinnor-page .board-member.chair {
  border-color: var(--sk-lila);
}

.s-kvinnor-page .board-member .role {
  color: var(--sk-lila);
}

.s-kvinnor-page .highlight-box {
  background: linear-gradient(135deg, var(--sk-lila) 0%, var(--sk-rosa) 100%);
}

.s-kvinnor-page .intro {
  border-left-color: var(--sk-lila);
}

.s-kvinnor-page .btn-red {
  background: var(--sk-lila);
}

.s-kvinnor-page .btn-red:hover {
  background: var(--sk-lila);
}

.s-kvinnor-page a {
  color: var(--sk-lila);
}

.s-kvinnor-page .highlight-box a {
  color: var(--white);
  text-decoration: underline;
}

.s-kvinnor-page .highlight-box .btn-red {
  background: var(--white);
  color: var(--sk-lila);
  text-decoration: none;
}

.s-kvinnor-page .highlight-box .btn-red:hover {
  background: var(--sk-ljusrosa);
  color: var(--sk-lila);
}

.s-kvinnor-page nav a,
.s-kvinnor-page .footer-section a,
.s-kvinnor-page .board-email a {
  color: inherit;
}

.s-kvinnor-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.s-kvinnor-logo {
  width: 180px;
  height: auto;
  flex-shrink: 0;
}

.s-kvinnor-intro h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .s-kvinnor-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .s-kvinnor-logo {
    width: 140px;
  }

  .s-kvinnor-intro .intro {
    border-left: none;
    padding-left: 0;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease forwards;
}

/* Better responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .stats-banner {
    padding: 20px;
    gap: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .policy-section {
    padding: 25px;
  }
}
