/* PINETAG */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Base Colors */
  --primary-black: #2e2e2e;
  --primary-white: #ffffff;
  --soft-gray: #f5f5f5;
  --medium-gray: #e9ecef;
  --dark-gray: #2e2e2e;
  --light-gray: #f1f3f4;

  /* Text Colors */
  --text-body: #2e2e2e;

  /* Pinetag Official Brand Colors */
  --pine-green: #1e4636;
  --pine-green-light: #4f7b63;
  --pine-green-lighter: #6b8b7a;
  --pine-yellow: #cfae44;
  --pine-yellow-light: #dbc268;
  --pine-yellow-lighter: #e7d68d;

  /* Extended Palette */
  --pine-green-dark: #163529;
  --pine-green-extra-light: #8fa89a;
  --pine-yellow-dark: #b8973a;
  --pine-yellow-extra-light: #f3e2b2;

  /* Neutral Supporting Colors */
  --warm-white: #fafaf9;
  --cool-gray: #6b7280;
  --warm-gray: #78716c;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-green-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--pine-yellow) 0%, var(--pine-yellow-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-green-light) 50%, var(--pine-yellow) 100%);
  --gradient-accent: linear-gradient(135deg, var(--pine-yellow) 0%, var(--pine-green-light) 100%);
  --gradient-warm: linear-gradient(135deg, var(--pine-yellow-light) 0%, var(--pine-yellow) 100%);
  --gradient-cool: linear-gradient(135deg, var(--pine-green-light) 0%, var(--pine-green) 100%);
  --gradient-brand: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-yellow) 100%);

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-width: 1200px; /* Reduced from 1400px for better responsiveness */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-color: 0 8px 32px rgba(16, 185, 129, 0.3);
}

/* Dark Mode Variables */
[data-theme='dark'] {
  /* Dark Mode Base Colors */
  --primary-black: #ffffff;
  --primary-white: #1a1a1a;
  --soft-gray: #2a2a2a;
  --medium-gray: #3a3a3a;
  --dark-gray: #e0e0e0;
  --light-gray: #2d2d2d;

  /* Dark Mode Text Colors */
  --text-body: #e0e0e0;

  /* Dark Mode Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Global Styles */
html {
  font-size: 16px;
  width: 100%;
}

/* Ensure smooth scrolling performance in Chrome */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Disable transitions for better scroll performance but keep content animations */
/* More specific transition disabling to avoid affecting scroll behavior and hover effects */
*:not(html):not(body):not([class*='case-card']):not([class*='team-member']):not([class*='specialization']):not(
    [class*='company-logo']
  ):not([class*='nav-']):not([class*='logo-animation']):not([class*='main-content']) {
  transition: none !important;
}

/* Re-enable transitions for specific hover-enabled elements */
.case-card {
  transition: all 0.3s ease !important;
}

.team-member {
  transition: all 0.3s ease !important;
}

.specialization {
  transition: all 0.4s ease !important;
}

.nav-menu a {
  transition: all 0.2s ease !important;
}

.nav-cta {
  transition: all 0.2s ease !important;
}

/* Allow essential animations for content display */
.logo-animation {
  transition: opacity 0.6s ease-out !important;
}

.logo-animation img {
  animation: logoFadeIn 1s ease-in-out forwards !important;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards !important;
}

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

body {
  font-family: var(--font-secondary);
  line-height: 1.7;
  color: var(--primary-black);
  background: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
  width: 100%;
  letter-spacing: 0.015em;
}

html {
  width: 100%;
}

/* Ensure all major containers don't overflow */
* {
  box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: border-box;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

/* Prevent any element from causing horizontal overflow */
.companies-grid,
.problems-grid,
.systems-grid,
.process-grid,
.team-grid,
.philosophy,
.contact-content,
.specialization-list,
section,
.section {
  max-width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: var(--pine-green);
}

h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: var(--dark-gray);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
}
h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-6);
  color: var(--text-body);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Logo Animation */
.logo-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--soft-gray) 50%, var(--medium-gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1.2s ease-out !important;
}

.logo-animation.fade-out {
  opacity: 0;
}

.logo-animation img {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  animation: logoFadeIn 1s ease-in-out forwards;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Main content fade-in */
.main-content {
  opacity: 0;
  transition: opacity 1.2s ease-in !important;
}

.main-content.visible {
  opacity: 1;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--medium-gray);
  z-index: 10000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme='dark'] header {
  background: rgba(26, 26, 26, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--container-width);
  margin: 0 auto;
}
.nav-logo {
  height: 60px;
}
.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-black);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-menu li a:not(.nav-cta)::before {
  content: '<';
  position: absolute;
  left: -0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--pine-green);
  font-weight: bold;
}

.nav-menu li a:not(.nav-cta)::after {
  content: '/>';
  position: absolute;
  right: -1.2rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
  background: linear-gradient(
    to right,
    var(--pine-yellow) 0%,
    var(--pine-yellow) 50%,
    var(--pine-green) 50%,
    var(--pine-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu li a:not(.nav-cta):hover::before {
  opacity: 0.8;
  transform: translateX(0);
}

.nav-menu li a:not(.nav-cta):hover::after {
  opacity: 0.8;
  transform: translateX(0);
}

.nav-menu li a:not(.nav-cta):hover {
  color: var(--pine-green-light);
}

.nav-menu li a:not(.nav-cta) {
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode navigation */
[data-theme='dark'] .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] .nav-menu li a:not(.nav-cta):hover {
  color: var(--pine-green-light);
}

[data-theme='dark'] .nav-menu li a:not(.nav-cta)::before {
  color: var(--pine-green-light);
}

[data-theme='dark'] .nav-menu li a:not(.nav-cta)::after {
  background: linear-gradient(
    to right,
    var(--pine-yellow-light) 0%,
    var(--pine-yellow-light) 50%,
    var(--pine-green-light) 50%,
    var(--pine-green-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme='dark'] .nav-menu li a:not(.nav-cta):hover::before {
  opacity: 1;
}

[data-theme='dark'] .nav-menu li a:not(.nav-cta):hover::after {
  opacity: 1;
}

.nav-cta {
  background: var(--gradient-brand) !important;
  color: var(--primary-white) !important;
  padding: var(--space-3) var(--space-5) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: var(--transition-fast) !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--pine-yellow) 0%, var(--pine-green-light) 100%) !important;
  color: var(--pine-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 70, 54, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-black);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft-gray) 0%, var(--medium-gray) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('../assets/marita-kavelashvili-ugnrXk1129g-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.hero-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.15;
  border-radius: 50% 0 0 50%;
}

.bg-pattern-2 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: radial-gradient(circle, var(--pine-yellow) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.1;
}

/* Removed patternFloat keyframes animation for better scroll performance */

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-8);
  color: var(--primary-black);
}

.highlight-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-decoration {
  width: 120px;
  height: 6px;
  background: var(--gradient-brand);
  border-radius: 3px;
  margin-top: var(--space-8);
}

/* Section Styles */
section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-20);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--space-6);
  position: relative;
}

.section-description {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   COMPANIES SECTION
   ================================ */

.companies-section {
  background: var(--soft-gray);
  position: relative;
  padding: var(--space-8) 0;
}

.companies-section .container {
  max-width: 1500px;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: var(--space-4);
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
  box-sizing: border-box;
}

/* Company Logo Styles */
.company-logo.featured.large {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 140px;
  background: var(--primary-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: all 0.3s ease !important;
}

.company-logo.featured.large img {
  max-height: 100px;
  width: auto;
  filter: grayscale(20%);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease !important;
}

.company-logo.featured.large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.company-logo.featured.large:hover img {
  filter: grayscale(0%);
}

.company-logo.small {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  min-height: 100px;
  background: var(--primary-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  box-shadow: var(--shadow-sm);
  position: relative;
  width: 100%;
  transition: all 0.3s ease !important;
}

.company-logo.small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.company-logo.small img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  filter: grayscale(50%);
  transition: all 0.3s ease !important;
}

.company-logo.small:hover img {
  filter: grayscale(0%);
}

/* Specific company adjustments */
.company-logo img[alt*='Team Verkstad'] {
  padding: var(--space-3);
}

/* Dark mode company logos */
[data-theme='dark'] .company-logo.featured.large,
[data-theme='dark'] .company-logo.small {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme='dark'] .company-logo.featured.large:hover,
[data-theme='dark'] .company-logo.small:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Companies Section Responsive Design */
@media (max-width: 992px) {
  .companies-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: var(--space-3);
  }

  .company-logo.featured.large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: 0 var(--space-2);
  }

  .company-logo.featured.large,
  .company-logo.small {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .companies-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: 0;
  }
}

/* ================================
   PROBLEMS SECTION
   ================================ */

.problems-section {
  background: var(--pine-green);
  color: var(--primary-white);
  position: relative;
  overflow: hidden;
}

.problems-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.1;
  border-radius: 50% 0 0 50%;
}

.problems-section .section-title {
  color: var(--pine-yellow) !important;
  cursor: default;
  pointer-events: none;
}

.problems-section .section-title:hover {
  color: var(--pine-yellow) !important;
}

.problems-section .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  position: relative;
  z-index: 2;
}

.case-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 0;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.case-image {
  width: 100%;
  height: 125px;
  overflow: hidden;
  position: relative;
}

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

.case-client,
.case-content {
  padding: var(--space-8);
}

.case-client {
  padding-bottom: 0;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pine-yellow) 0%, var(--pine-green) 100%);
  z-index: 10;
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.case-client h4 {
  color: var(--pine-yellow);
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.case-problem,
.case-result {
  padding: var(--space-4) 0;
}

.case-problem h5,
.case-result h5 {
  color: var(--pine-yellow);
  font-size: 1rem;
  margin-bottom: var(--space-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-problem p,
.case-result p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.case-result {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
}

/* Case cards responsive design */
@media (max-width: 768px) {
  .case-image {
    height: 150px;
  }

  .case-client,
  .case-content {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .case-image {
    height: 120px;
  }

  .case-client,
  .case-content {
    padding: var(--space-4);
  }

  .case-client h4 {
    font-size: 1.3rem;
  }
}

/* Systems Section */
.systems-section {
  background: var(--soft-gray);
  position: relative;
  background-image: url('../assets/marita-kavelashvili-ugnrXk1129g-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

/* .systems-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, rgba(248, 249, 250, 0.95) 70%, rgba(124, 58, 237, 0.1) 100%);
} */

.systems-section .section-title {
  color: var(--pine-yellow);
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout: 1 main, 2 wide, 1 main */
.system-card:nth-child(1) {
  /* NetSuite Integration - main product, full width */
  grid-column: 1 / -1;
}

.system-card:nth-child(2),
.system-card:nth-child(4) {
  /* FordonsJournalen - wide card, left half */
  grid-column: 1 / 2;
}

.system-card:nth-child(3),
.system-card:nth-child(5) {
  /* cPlan - wide card, right half */
  grid-column: 2 / 3;
}

.system-card:nth-child(6) {
  /* ArbetsJournalen - main product, full width */
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  .systems-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.system-card {
  background: var(--primary-white);
  border-radius: var(--border-radius);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--pine-green-extra-light);
  /* border: 1px solid rgba(30, 70, 54, 0.1); */
}

/* Dark mode system cards */
[data-theme='dark'] .system-card {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-black);
}

[data-theme='dark'] .system-card h3 {
  color: var(--pine-yellow-dark);
}

[data-theme='dark'] .system-card .system-description {
  color: rgba(0, 0, 0, 0.85);
}

/* .system-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-cool);
  opacity: 0;
  transition: var(--transition-medium);
} */

/* .system-card:hover::before {
  right: 0;
  opacity: 0.05;
} */
/* 
.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
} */

.system-card.main-product {
  background: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-green-light) 100%);
  color: var(--primary-white);
  border-left: 4px solid var(--pine-yellow);
}

.system-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.system-header.logo-only {
  justify-content: center;
  margin-bottom: 0;
}

.system-header.logo-only .system-logo {
  width: 240px;
  height: 120px;
}

.system-logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.system-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--pine-yellow);
  margin: 0;
}

.system-card.main-product h3 {
  color: var(--primary-white);
}

.system-description {
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.6;
  color: var(--dark-gray);
  margin-bottom: var(--space-6);
}

.system-card.main-product .system-description {
  color: rgba(255, 255, 255, 0.9);
}

.specializations {
  margin-top: var(--space-8);
}

.specializations h4 {
  font-size: clamp(1.1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.specialization-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Reduced from 4 to 2 columns */
  gap: var(--space-4);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1400px) {
  .system-header {
    display: block;
  }
}
@media (max-width: 1024px) {
  .specialization-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  .specialization-list {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .container {
    padding: 0 var(--space-3);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }
}

.specialization {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-4);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--pine-yellow);
  transition: var(--transition-slow);
}

.specialization:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.specialization h5 {
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--primary-white);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.specialization p {
  font-size: clamp(0.85rem, 1.8vw, 0.9rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.system-links {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.system-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-white);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: var(--space-3) var(--space-6);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-medium);
}

.system-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--pine-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode specific system link styles */
[data-theme='dark'] .system-link {
  background-color: rgba(207, 174, 68, 0.2);
  border-color: rgba(207, 174, 68, 0.4);
  color: var(--pine-yellow);
}

[data-theme='dark'] .system-link:hover {
  background-color: rgba(207, 174, 68, 0.3);
  border-color: var(--pine-yellow);
  box-shadow: 0 4px 12px rgba(207, 174, 68, 0.3);
}

/* Results Section */
.results-section {
  background: var(--pine-green);
  position: relative;
  color: var(--primary-white);
}

.results-section .container {
  max-width: 1500px;
}

.results-section .section-title {
  color: var(--pine-yellow) !important;
  cursor: default;
  pointer-events: none;
}

.results-section .section-title:hover {
  color: var(--pine-yellow) !important;
}

.results-section .section-description {
  color: rgba(255, 255, 255, 0.9);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-20);
}

.process-step {
  text-align: center;
  position: relative;
  padding: var(--space-8);
  border-radius: var(--border-radius);
  background: transparent;
}

.process-step:hover {
  background: transparent;
}

.step-indicator {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.process-step[data-step='1'] .step-indicator {
  background: linear-gradient(135deg, var(--pine-green-dark) 0%, var(--pine-green) 100%);
}

.process-step[data-step='2'] .step-indicator {
  background: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-green-light) 100%);
}

.process-step[data-step='3'] .step-indicator {
  background: linear-gradient(135deg, var(--pine-green-light) 0%, var(--pine-yellow-dark) 100%);
}

.process-step[data-step='4'] .step-indicator {
  background: linear-gradient(135deg, var(--pine-yellow-dark) 0%, var(--pine-yellow) 100%);
}

.step-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-white);
}

.step-content h3 {
  color: var(--primary-white);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.philosophy {
  background: rgba(255, 255, 255, 0.1);
  border-left: 6px solid var(--pine-yellow);
  border-radius: var(--border-radius);
  padding: var(--space-10);
  position: relative;
  font-style: italic;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-mark {
  font-size: 4rem;
  color: var(--pine-yellow);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.philosophy p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.quote-attribution {
  font-weight: 600;
  color: var(--pine-yellow);
  font-style: normal;
}

/* Process Section Responsive Design */
@media (max-width: 1300px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: 0 var(--space-2);
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: 0;
  }
}

/* Workers Section */
.workers-section {
  background: var(--soft-gray);
  position: relative;
}

.workers-section .section-title {
  color: var(--pine-yellow);
}

.workers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 60%, rgba(255, 107, 53, 0.05) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  position: relative;
  z-index: 2;
}

.team-member {
  background: var(--primary-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  position: relative;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.member-image {
  height: 300px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

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

.gradient-bar {
  width: 100%;
  height: 8px;
  background: var(--gradient-hero);
  position: absolute;
  top: 0;
  left: 0;
}

.member-image:has(.gradient-bar) {
  height: 8px;
  background: transparent;
}

.member-info {
  padding: var(--space-8);
}

.member-info h3 {
  color: var(--primary-black);
  margin-bottom: var(--space-2);
  font-size: 1.5rem;
}

.member-role {
  font-family: var(--font-secondary);
  color: var(--pine-green-light);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.member-bio {
  margin-bottom: var(--space-6);
  line-height: 1.6;
  color: var(--dark-gray);
  font-style: italic;
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--primary-black);
  color: var(--primary-white);
  position: relative;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/marita-kavelashvili-ugnrXk1129g-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.contact-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pine-green) 0%, var(--pine-green-light) 100%);
  opacity: 0.1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-title {
  color: var(--primary-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-6);
}

/* Dark mode contact title */
[data-theme='dark'] .contact-title {
  color: #ffffff !important;
}

.contact-intro,
.contact-footer {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: var(--space-6);
}

.contact-form {
  position: relative;
}

.contact-form iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
}

/* Footer */
footer {
  background: var(--pine-yellow);
  color: var(--pine-green);
  padding: var(--space-16) var(--space-16) var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-logo {
  max-height: 130px;
}

.footer-tagline {
  color: var(--pine-green);
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-section h4 {
  color: var(--pine-green);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer-section p,
.footer-section li {
  color: var(--pine-green);
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

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

.footer-section ul li a {
  color: var(--pine-green);
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition-fast);
  display: block;
  padding: var(--space-1) 0;
}

.footer-section ul li a:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-links a {
  color: var(--pine-green);
  text-decoration: none;
  transition: var(--transition-fast);
  opacity: 0.7;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(30, 70, 54, 0.2);
}

.footer-bottom p {
  color: var(--pine-green);
  margin: 0;
  opacity: 0.6;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(30, 70, 54, 0.35);
  border: 2px solid rgba(30, 70, 54, 0.6);
  border-radius: 25px;
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--pine-green);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(30, 70, 54, 0.25);
  font-weight: 600;
}

.dark-mode-toggle:hover {
  background: rgba(30, 70, 54, 0.5);
  border-color: rgba(30, 70, 54, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(30, 70, 54, 0.35);
}

.dark-mode-toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-mode-toggle:hover .icon {
  transform: rotate(180deg) scale(1.15);
}

/* Responsive Design */
/* Extra large screens - 1800px and down */
@media (max-width: 1800px) {
  .container {
    max-width: 1100px;
    padding: 0 var(--space-6);
  }
}

/* Large screens and tablets - 1600px and down */
@media (max-width: 1600px) {
  .container {
    max-width: 1000px;
    padding: 0 var(--space-5);
  }

  .philosophy {
    padding: var(--space-8);
  }
} /* Medium tablets - 1400px and down */
@media (max-width: 1400px) {
  .container {
    max-width: 900px;
    padding: 0 var(--space-4);
  }

  .philosophy {
    padding: var(--space-6);
  }
}

/* Tablets - 1200px and down */
@media (max-width: 1200px) {
  .container {
    max-width: 750px;
    padding: 0 var(--space-4);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .philosophy {
    padding: var(--space-6);
  }
} /* Medium tablets - 900px and down */
@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 600px;
    padding: 0 var(--space-4);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .philosophy {
    padding: var(--space-5);
  }
}

@media (max-width: 802px) {
  .container {
    padding: 0 var(--space-3);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 73px; /* Height of header */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    flex-direction: column;
    padding: var(--space-4) 0;
    z-index: 9999;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0;
    text-align: center;
    padding: 0 0;
  }

  .nav-menu li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .company-logo.featured.large {
    grid-column: span 2;
  }

  .company-logo.small {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .philosophy {
    padding: var(--space-4);
  }

  .philosophy p {
    font-size: 1rem;
  }

  /* Systems responsive */
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .system-card:nth-child(1),
  .system-card:nth-child(2),
  .system-card:nth-child(3),
  .system-card:nth-child(4),
  .system-card:nth-child(5),
  .system-card:nth-child(6) {
    grid-column: 1 / -1;
  }

  .system-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .system-header.logo-only .system-logo {
    width: 200px;
    height: 100px;
  }

  .system-logo {
    width: 100px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
    max-width: 100%;
  }

  .company-logo.featured.large,
  .company-logo.small {
    grid-column: span 1;
  }

  .philosophy {
    padding: var(--space-3);
  }

  .philosophy p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .quote-mark {
    font-size: 3rem;
    top: var(--space-2);
    left: var(--space-4);
  }

  /* Systems mobile responsive */
  .systems-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .system-card:nth-child(1),
  .system-card:nth-child(2),
  .system-card:nth-child(3),
  .system-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .system-card {
    padding: var(--space-6);
  }

  .system-header.logo-only .system-logo {
    width: 160px;
    height: 80px;
  }

  .system-logo {
    width: 80px;
    height: 40px;
  }

  .specialization {
    padding: var(--space-3);
  }

  .system-link {
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
