/* ===================================
   VIVID HINGE - SCANDINAVIAN CLEAN DESIGN
   CSS Reset & Base Styles
   =================================== */

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #fafafa;
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY - SCANDINAVIAN STYLE
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a4468;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  color: #4a5568;
}

a {
  color: #2D5F8D;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a4468;
}

ul {
  list-style: none;
}

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

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===================================
   HEADER - CLEAN & MINIMAL
   =================================== */

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}

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

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2D5F8D;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===================================
   MOBILE MENU - SMOOTH SLIDE
   =================================== */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 150;
  background-color: #2D5F8D;
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(45, 95, 141, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: #1a4468;
  transform: scale(1.05);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 200;
  padding: 80px 32px 32px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #2c3e50;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.mobile-menu-close:hover {
  color: #2D5F8D;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav a {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #2D5F8D;
}

/* ===================================
   BUTTONS - SCANDINAVIAN STYLE
   =================================== */

.btn-primary,
.btn-secondary,
.btn-link {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #2D5F8D;
  color: #ffffff !important;
  border-color: #2D5F8D;
}

.btn-primary:hover {
  background-color: #1a4468;
  border-color: #1a4468;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 95, 141, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #2D5F8D;
  border-color: #2D5F8D;
}

.btn-secondary:hover {
  background-color: #2D5F8D;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-link {
  padding: 8px 0;
  color: #2D5F8D;
  font-weight: 600;
  border: none;
  position: relative;
}

.btn-link::after {
  content: '→';
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.btn-link:hover::after {
  margin-left: 12px;
}

/* ===================================
   HERO SECTIONS - LIGHT & AIRY
   =================================== */

.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 20px;
  margin-bottom: 60px;
  border-bottom: 1px solid #e8e8e8;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 24px;
  color: #1a4468;
}

.hero-subtitle {
  font-size: 20px;
  color: #4a5568;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-indicator {
  color: #718096;
  font-size: 14px;
  margin-top: 24px;
}

/* ===================================
   SECTIONS - CONSISTENT SPACING
   =================================== */

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================================
   GRID LAYOUTS - FLEXBOX ONLY
   =================================== */

.three-column-grid,
.services-grid,
.articles-grid,
.statistics-grid,
.stats-grid,
.values-grid,
.pages-grid,
.resources-grid,
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.three-column-grid .column,
.services-grid .service-card,
.articles-grid .article-card,
.statistics-grid .stat-card,
.stats-grid .stat-card,
.values-grid .value-card,
.pages-grid .page-card,
.resources-grid .resource-card,
.tools-grid .tool-card {
  flex: 1 1 300px;
  min-width: 280px;
  background-color: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover,
.article-card:hover,
.stat-card:hover,
.value-card:hover,
.page-card:hover,
.resource-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===================================
   CARD COMPONENTS
   =================================== */

.card,
.service-item,
.case-study-card {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  position: relative;
}

.service-card h3,
.article-card h3,
.stat-card h3,
.value-card h3,
.page-card h3,
.resource-card h3 {
  color: #1a4468;
  margin-bottom: 12px;
}

.service-card p,
.article-card p,
.value-card p,
.page-card p,
.resource-card p {
  color: #4a5568;
  margin-bottom: 16px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: #2D5F8D;
  margin: 16px 0;
}

.type,
.article-type {
  font-size: 14px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.date {
  font-size: 14px;
  color: #a0aec0;
  margin-top: 12px;
}

/* ===================================
   TESTIMONIALS - HIGH CONTRAST
   =================================== */

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  flex: 1 1 450px;
  background-color: #f8f9fa;
  padding: 32px;
  border-radius: 8px;
  border-left: 4px solid #2D5F8D;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card p {
  font-size: 18px;
  line-height: 1.7;
  color: #2c3e50;
  font-style: italic;
}

.attribution {
  font-size: 14px;
  font-weight: 600;
  color: #2D5F8D;
  font-style: normal;
  margin-top: 8px;
}

/* ===================================
   IMPACT METRICS
   =================================== */

.impact-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
}

.metric {
  flex: 1 1 200px;
  text-align: center;
  padding: 24px;
}

.metric h3 {
  font-size: 48px;
  color: #2D5F8D;
  margin-bottom: 8px;
  font-weight: 700;
}

.metric p {
  font-size: 16px;
  color: #4a5568;
}

/* ===================================
   TIMELINE - MINIMAL
   =================================== */

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.milestone {
  flex: 1 1 200px;
  padding: 24px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-top: 3px solid #2D5F8D;
}

.milestone h3 {
  font-size: 32px;
  color: #2D5F8D;
  margin-bottom: 12px;
}

.milestone p {
  color: #4a5568;
}

/* ===================================
   DISCIPLINES & CATEGORIES
   =================================== */

.disciplines-grid,
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.discipline,
.category {
  flex: 0 1 auto;
  padding: 12px 24px;
  background-color: #f8f9fa;
  border-radius: 24px;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #e8e8e8;
  transition: all 0.3s ease;
}

.discipline:hover,
.category:hover {
  background-color: #2D5F8D;
  color: #ffffff;
  border-color: #2D5F8D;
}

/* ===================================
   404 ERROR PAGE
   =================================== */

.hero-404 {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 20px;
  text-align: center;
}

.error-code {
  font-size: 120px;
  color: #2D5F8D;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
}

.error-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

/* ===================================
   CTA SECTIONS
   =================================== */

.cta-banner,
.cta-section {
  background: linear-gradient(135deg, #2D5F8D 0%, #1a4468 100%);
  padding: 60px 20px;
  border-radius: 12px;
  text-align: center;
  margin: 60px 0;
}

.cta-content h2,
.cta-section h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-content p,
.cta-section p {
  color: #e8f4f8;
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-content .btn-primary,
.cta-section .btn-primary {
  background-color: #ffffff;
  color: #2D5F8D;
  border-color: #ffffff;
}

.cta-content .btn-primary:hover,
.cta-section .btn-primary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.secondary-link {
  margin-top: 16px;
  color: #e8f4f8;
}

.secondary-link a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===================================
   FOCUS AREAS & LISTS
   =================================== */

.focus-areas,
.library-section {
  margin-top: 32px;
  padding: 32px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.focus-areas h3,
.library-section h3 {
  margin-bottom: 16px;
  color: #1a4468;
}

.focus-areas ul,
.library-section ul {
  list-style: none;
  padding-left: 0;
}

.focus-areas ul li,
.library-section ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #4a5568;
}

.focus-areas ul li::before,
.library-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2D5F8D;
  font-size: 20px;
}

/* ===================================
   SERVICE ITEMS & DETAILS
   =================================== */

.service-item ul {
  list-style: none;
  margin: 24px 0;
  padding-left: 0;
}

.service-item ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #4a5568;
}

.service-item ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2D5F8D;
  font-weight: 700;
}

.timeline {
  font-size: 14px;
  color: #718096;
  margin-top: 16px;
  font-weight: 600;
}

/* ===================================
   CONTACT FORMS
   =================================== */

.form-notice {
  background-color: #fff3cd;
  border-left: 4px solid #D47A2E;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.form-notice p {
  color: #856404;
  margin-bottom: 8px;
}

.form-fields-display {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.field-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.field {
  flex: 1 1 250px;
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #2D5F8D;
}

.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

/* ===================================
   FOOTER - CLEAN & ORGANIZED
   =================================== */

footer {
  background-color: #2c3e50;
  color: #e8f4f8;
  padding: 60px 20px 24px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column h3,
.footer-column h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-column p {
  color: #cbd5e0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-column nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column nav a {
  color: #cbd5e0;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #4a5568;
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e0;
  font-size: 14px;
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2c3e50;
  color: #ffffff;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 400px;
}

.cookie-text p {
  color: #e8f4f8;
  margin-bottom: 8px;
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-accept-all {
  background-color: #2D5F8D;
  color: #ffffff;
  border-color: #2D5F8D;
}

.btn-accept-all:hover {
  background-color: #1a4468;
}

.btn-reject-all {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-reject-all:hover {
  background-color: #ffffff;
  color: #2c3e50;
}

.btn-cookie-settings {
  background-color: transparent;
  color: #e8f4f8;
  border: none;
  text-decoration: underline;
}

.btn-cookie-settings:hover {
  color: #ffffff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #2c3e50;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-preference {
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.cookie-preference:last-child {
  border-bottom: none;
}

.cookie-preference h4 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background-color: #2D5F8D;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons a {
    width: 100%;
    text-align: center;
  }
  
  .three-column-grid .column,
  .services-grid .service-card,
  .articles-grid .article-card {
    flex: 1 1 100%;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-buttons button {
    flex: 1 1 auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .three-column-grid .column,
  .services-grid .service-card {
    flex: 1 1 45%;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.large-text {
  font-size: 20px;
  line-height: 1.7;
  color: #4a5568;
}

.last-updated {
  font-size: 14px;
  color: #718096;
  margin-bottom: 24px;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.service-card,
.article-card,
.stat-card {
  animation: fadeIn 0.6s ease-out;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

:focus-visible {
  outline: 3px solid #2D5F8D;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #2D5F8D;
  outline-offset: 2px;
}

/* High contrast for better readability */
.testimonial-card p,
.stat-card p,
.case-study-card p {
  color: #2c3e50;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-banner,
  .cookie-modal,
  header,
  footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}