:root {
  /* Colors */
  --color-primary: #5A7D7C; /* Primary color based on design_preferences */
  --color-secondary: #C9CAC0; /* Secondary color based on design_preferences */
  --color-accent: #84A07C; /* Button color used as accent */
  --color-text-dark: #333333; /* Dark text for light backgrounds */
  --color-text-light: #ffffff; /* Light text for dark backgrounds */
  --color-bg: #F8F8F8; /* Background color based on design_preferences */
  --color-footer-bg: #E0E0E0; /* Footer background based on design_preferences */
  
  --section-bg-1: #F8F8F8;
  --section-bg-2: #FFFFFF;
  --section-bg-3: #E8ECEB;
  --section-bg-4: #F1F4F3;

  /* Typography */
  --font-primary: 'Inter', sans-serif; /* Clean sans-serif for minimalism */
  --font-secondary: 'Roboto', sans-serif; /* Another legible sans-serif */
  --font-size-base: 18px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);   /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2);   /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 3);   /* 24px */
  --spacing-lg: calc(var(--spacing-unit) * 4);   /* 32px */
  --spacing-xl: calc(var(--spacing-unit) * 6);   /* 48px */
  --spacing-2xl: calc(var(--spacing-unit) * 8);  /* 64px */

  /* Visual effects */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --transition-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

h1 { font-size: calc(var(--font-size-base) * 2.5); letter-spacing: -0.02em; }
h2 { font-size: calc(var(--font-size-base) * 2); }
h3 { font-size: calc(var(--font-size-base) * 1.75); }
h4 { font-size: calc(var(--font-size-base) * 1.5); }
h5 { font-size: calc(var(--font-size-base) * 1.25); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-dark);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities for sections with background colors */
.section-bg-1 {
  background-color: var(--section-bg-1);
  color: var(--color-text-dark) !important;
}
.section-bg-1 h1, .section-bg-1 h2, .section-bg-1 h3, .section-bg-1 h4, .section-bg-1 h5, .section-bg-1 h6, .section-bg-1 p, .section-bg-1 span, .section-bg-1 div {
  color: var(--color-text-dark) !important;
}

.section-bg-2 {
  background-color: var(--section-bg-2);
  color: var(--color-text-dark) !important;
}
.section-bg-2 h1, .section-bg-2 h2, .section-bg-2 h3, .section-bg-2 h4, .section-bg-2 h5, .section-bg-2 h6, .section-bg-2 p, .section-bg-2 span, .section-bg-2 div {
  color: var(--color-text-dark) !important;
}

.section-bg-3 {
  background-color: var(--section-bg-3);
  color: var(--color-text-dark) !important;
}
.section-bg-3 h1, .section-bg-3 h2, .section-bg-3 h3, .section-bg-3 h4, .section-bg-3 h5, .section-bg-3 h6, .section-bg-3 p, .section-bg-3 span, .section-bg-3 div {
  color: var(--color-text-dark) !important;
}

.section-bg-4 {
  background-color: var(--section-bg-4);
  color: var(--color-text-dark) !important;
}
.section-bg-4 h1, .section-bg-4 h2, .section-bg-4 h3, .section-bg-4 h4, .section-bg-4 h5, .section-bg-4 h6, .section-bg-4 p, .section-bg-4 span, .section-bg-4 div {
  color: var(--color-text-dark) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-easing);
  border: 1px solid transparent;
  backdrop-filter: blur(2px); /* Slight glassmorphism touch */
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-1px);
}

/* Cards - Minimalist and functional */
.card {
  background-color: var(--section-bg-2); /* White background for cards */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--color-secondary);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  background-color: var(--section-bg-2);
  transition: border-color var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(90, 125, 124, 0.2); /* Focus ring with primary color */
}

/* Navigation - Assuming a simple nav structure */
nav {
  background-color: var(--color-bg);
  padding: var(--spacing-md) var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

nav .nav-links a {
  color: var(--color-primary);
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-speed) var(--transition-easing);
}

nav .nav-links a:hover::after,
nav .nav-links a.active::after {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-dark);
  padding: var(--spacing-xl) var(--spacing-xl);
  text-align: center;
  margin-top: var(--spacing-2xl);
}

footer a {
  color: var(--color-primary);
}

footer a:hover {
  color: var(--color-accent);
}

/* Alpine.js specific styles */
[x-cloak] {
  display: none !important;
}

/* Alpine.js transition for x-show/x-if */
.fade-in-transition {
  transition: opacity var(--transition-speed) ease-in-out;
}
.fade-in-transition:not(.opacity-0) {
  opacity: 1;
}
.fade-in-transition.opacity-0 {
  opacity: 0;
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
  h1 { font-size: calc(var(--font-size-base) * 3); }
  h2 { font-size: calc(var(--font-size-base) * 2.5); }
  nav {
    padding: var(--spacing-md) var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  h1 { font-size: calc(var(--font-size-base) * 3.5); }
  h2 { font-size: calc(var(--font-size-base) * 3); }
  body {
    font-size: 19px;
  }
  nav {
    padding: var(--spacing-md) var(--spacing-2xl);
  }
  nav .hidden { /* Assuming Tailwind's 'hidden' class might be used for mobile menu toggle */
    display: flex !important;
  }
}

/* Additional specific styles for Scandinavian minimalism */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* Subtle border for sections for visual separation */
.section-separator {
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  margin-right: var(--spacing-xs);
  vertical-align: middle;
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}