/* Göteholm kommun - Main Stylesheet */
/* Swedish municipality design inspired by Uppsala.se */

:root {
  /* Primary Colors - Swedish municipality blue */
  --primary-color: #005f85;
  --primary-dark: #004a6b;
  --primary-light: #0078a8;

  /* Secondary Colors */
  --secondary-color: #ffc107;
  --secondary-dark: #e6ad00;

  /* Neutral Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #777;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7f9;
  --bg-tertiary: #e8eef2;
  --border-color: #d1d9e0;

  /* Status Colors */
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;

  /* Typography */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Bar */
.utility-bar {
  background: var(--primary-dark);
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.utility-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-links {
  display: flex;
  gap: 1.5rem;
}

.utility-links a,
.utility-actions a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.utility-links a:hover,
.utility-actions a:hover {
  color: white;
  text-decoration: underline;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.utility-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-link.highlight {
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.welcome-text {
  opacity: 0.9;
}

/* Main Header */
.main-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon svg {
  display: block;
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  text-decoration: none;
}

.nav-item.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  z-index: 1000;
}

.nav-item.is-open .dropdown-menu,
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  padding: 0.75rem 0;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-primary);
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

/* Header Search */
.header-search {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
}

.search-form input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  width: 180px;
  outline: none;
}

.search-form button {
  background: var(--primary-color);
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  text-decoration: none;
}

.btn-gold {
  background: var(--secondary-color);
  color: var(--text-primary);
  border-color: var(--secondary-color);
}

.btn-gold:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  text-decoration: none;
}

.btn-text {
  background: transparent;
  color: var(--primary-color);
  padding: 0.5rem 0;
  border: none;
}

.btn-text:hover {
  color: var(--primary-dark);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/hero-banner.jpg') center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 95, 133, 0.92) 0%, rgba(0, 74, 107, 0.95) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 4rem 1rem;
  align-items: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

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

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  text-align: left;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Quick Access Card */
.quick-access-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.quick-access-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s;
}

.quick-link:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.quick-link svg {
  flex-shrink: 0;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Services Grid */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.service-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-card.featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.news-image {
  height: 200px;
  background: var(--bg-tertiary);
}

.news-card.featured .news-image {
  flex: 1;
  min-height: 250px;
}

.news-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text h2 {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-text p {
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-map {
  height: 100%;
  min-height: 350px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay {
  text-align: center;
  color: var(--text-secondary);
}

.map-overlay svg {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.map-overlay p {
  margin-bottom: 1rem;
}

/* Footer */
.main-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-heading {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-contact {
  font-style: normal;
  font-size: 0.9rem;
}

.footer-contact p {
  margin-bottom: 1rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.25rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.legal-links a {
  color: rgba(255,255,255,0.6);
}

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

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 95, 133, 0.1);
}

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

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .utility-bar-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .utility-links {
    display: none;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
  }

  .nav-toggle-icon::before {
    top: -7px;
  }

  .nav-toggle-icon::after {
    top: 7px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
