/* =====================================================
   ZOON CORP - Professional Website Stylesheet
   Clean, Cohesive Design for 2026
   ===================================================== */

/* CSS Variables - Unified Color Scheme */
:root {
  /* Primary Brand Colors */
  --primary: #1a5f2a;
  --primary-light: #2d8a3e;
  --primary-dark: #0f3d1a;
  
  /* Accent Colors */
  --accent: #d4a853;
  --accent-dark: #b8922e;
  
  /* Tech Colors */
  --tech-blue: #2c5282;
  --tech-light: #3182ce;
  
  /* Neutrals - Clean Grayscale */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  
  /* Typography - Optimized with font-display: swap */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Font Display - Prevent FOIT (Flash of Invisible Text) */
  font-display: swap;
  
  /* Spacing Scale */
  --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;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.main-content {
  padding-top: 80px;
  min-height: calc(100vh - 200px);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  padding: 100px 0 var(--space-16);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
  height: auto;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   CARDS (Verticals, Features, Products, Services)
   ===================================================== */
.verticals-grid,
.features-grid,
.product-grid,
.service-grid,
.values-grid {
  display: grid;
  gap: var(--space-6);
}

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

.features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.vertical-card,
.feature-card,
.product-card,
.service-card,
.value-card {
  background: var(--bg-secondary);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
}

.vertical-card:hover,
.feature-card:hover,
.product-card:hover,
.service-card:hover,
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.vertical-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.vertical-card h3 {
  margin-bottom: var(--space-3);
}

.vertical-card ul {
  margin-top: var(--space-4);
}

.vertical-card li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
}

.vertical-card li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.feature-card {
  text-align: center;
  padding: var(--space-6);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 1.25rem;
  color: var(--white);
}

.feature-card h4 {
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--space-4);
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
  background: var(--white);
  text-align: center;
  padding: var(--space-16) 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: var(--space-3);
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

/* =====================================================
   PAGE HEADERS
   ===================================================== */
.page-header {
  padding: 120px 0 var(--space-10);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}

.contact-info h3 {
  margin-bottom: var(--space-4);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--white);
}

.contact-item h4 {
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.contact-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--primary);
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-secondary);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

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

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

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

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

/* 5-column footer grid for enhanced footer */
.footer-grid-5 {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

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

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .logo-text span {
  color: var(--accent);
}

.footer-brand > p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

/* Footer Contact Information */
.footer-contact {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--gray-500);
}

.footer-contact-item i {
  width: 20px;
  color: var(--accent);
  text-align: center;
}

.footer-contact-item a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

/* Footer Hours */
.footer-hours .footer-links li:not(:last-child) {
  margin-bottom: var(--space-2);
}

.footer-hours .hours-note {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: var(--space-2);
  font-style: italic;
}

.footer h4 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-6);
  font-size: 0.9rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom .copyright {
  color: var(--gray-500);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-legal a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal .separator {
  color: var(--gray-700);
}

/* =====================================================
   SOCIAL LINKS
   ===================================================== */
.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  color: var(--gray-400);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transition: top var(--transition);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-hours {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .header-actions {
    display: none;
  }
  
  .hero {
    padding: 80px 0 var(--space-10);
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .verticals-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-grid-5 {
    grid-template-columns: 1fr;
  }
  
  .footer-brand,
  .footer-hours {
    grid-column: span 1;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-contact {
    align-items: center;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
  }
}

/* =====================================================
   DARK MODE - Comprehensive Implementation
   ===================================================== */

/* CSS Custom Property Definitions for Dark Mode */
html[data-theme="dark"] {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f26;
  --bg-tertiary: #242b33;
  --bg-light: #1e2530;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b8c0;
  --text-muted: #8a939d;
  --border-color: #2d3740;
  --gray-text: #a0a8b0;
}

/* System Preference - Dark Mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-tertiary: #242b33;
    --bg-light: #1e2530;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b8c0;
    --text-muted: #8a939d;
    --border-color: #2d3740;
    --gray-text: #a0a8b0;
  }
}

/* Base Dark Mode Styles - Applied to html for inheritance */
html[data-theme="dark"],
html:not([data-theme="light"]) body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Header Dark Mode */
html[data-theme="dark"] .header,
html:not([data-theme="light"]) .header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .nav-link,
html:not([data-theme="light"]) .nav-link {
  color: var(--text-secondary);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active,
html:not([data-theme="light"]) .nav-link:hover,
html:not([data-theme="light"]) .nav-link.active {
  color: var(--accent);
}

html[data-theme="dark"] .logo-text,
html:not([data-theme="light"]) .logo-text {
  color: var(--text-primary);
}

html[data-theme="dark"] .logo-text span,
html:not([data-theme="light"]) .logo-text span {
  color: var(--accent);
}

html[data-theme="dark"] .mobile-menu-btn span,
html:not([data-theme="light"]) .mobile-menu-btn span {
  background: var(--text-primary);
}

/* Hero Section Dark Mode */
html[data-theme="dark"] .hero,
html:not([data-theme="light"]) .hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

html[data-theme="dark"] .hero-text h1 span,
html:not([data-theme="light"]) .hero-text h1 span {
  color: var(--accent);
}

/* Page Header Dark Mode */
html[data-theme="dark"] .page-header,
html:not([data-theme="light"]) .page-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Section Backgrounds */
html[data-theme="dark"] .section.verticals,
html[data-theme="dark"] section[id="journey"],
html[data-theme="dark"] section[id="values"],
html[data-theme="dark"] .products-section,
html[data-theme="dark"] .services-section,
html[data-theme="dark"] section[id="overview"][style*="background"],
html[data-theme="dark"] section[id="export-support"],
html[data-theme="dark"] section[id="additional-info"],
html[data-theme="dark"] .section[style*="background: var(--bg-light)"],
html[data-theme="dark"] .about,
html:not([data-theme="light"]) .section.verticals,
html:not([data-theme="light"]) section[id="journey"],
html:not([data-theme="light"]) section[id="values"],
html:not([data-theme="light"]) .products-section,
html:not([data-theme="light"]) .services-section,
html:not([data-theme="light"]) section[id="overview"][style*="background"],
html:not([data-theme="light"]) section[id="export-support"],
html:not([data-theme="light"]) section[id="additional-info"],
html:not([data-theme="light"]) .section[style*="background: var(--bg-light)"],
html:not([data-theme="light"]) .about {
  background: var(--bg-primary) !important;
  background-image: none !important;
}

/* Cards Dark Mode */
html[data-theme="dark"] .vertical-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .contact-form,
html:not([data-theme="light"]) .vertical-card,
html:not([data-theme="light"]) .feature-card,
html:not([data-theme="light"]) .product-card,
html:not([data-theme="light"]) .service-card,
html:not([data-theme="light"]) .value-card,
html:not([data-theme="light"]) .contact-form {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

html[data-theme="dark"] .vertical-card h3,
html[data-theme="dark"] .product-card h3,
html[data-theme="dark"] .service-card h3,
html:not([data-theme="light"]) .vertical-card h3,
html:not([data-theme="light"]) .product-card h3,
html:not([data-theme="light"]) .service-card h3 {
  color: var(--text-primary);
}

html[data-theme="dark"] .vertical-card li,
html[data-theme="dark"] .product-card ul li,
html[data-theme="dark"] .service-card ul li,
html:not([data-theme="light"]) .vertical-card li,
html:not([data-theme="light"]) .product-card ul li,
html:not([data-theme="light"]) .service-card ul li {
  color: var(--text-secondary);
}

/* Vertical Card Icon */
html[data-theme="dark"] .vertical-icon,
html:not([data-theme="light"]) .vertical-icon {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

/* Feature Card */
html[data-theme="dark"] .feature-card h4,
html:not([data-theme="light"]) .feature-card h4 {
  color: var(--text-primary);
}

html[data-theme="dark"] .feature-card p,
html:not([data-theme="light"]) .feature-card p {
  color: var(--text-secondary);
}

/* Contact Section */
html[data-theme="dark"] .contact-info h3,
html:not([data-theme="light"]) .contact-info h3 {
  color: var(--text-primary);
}

html[data-theme="dark"] .contact-item h4,
html:not([data-theme="light"]) .contact-item h4 {
  color: var(--text-primary);
}

html[data-theme="dark"] .contact-item p,
html:not([data-theme="light"]) .contact-item p {
  color: var(--text-secondary);
}

html[data-theme="dark"] .contact-item a,
html:not([data-theme="light"]) .contact-item a {
  color: var(--accent);
}

/* Form Elements Dark Mode */
html[data-theme="dark"] .form-group label,
html:not([data-theme="light"]) .form-group label {
  color: var(--text-primary);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea,
html:not([data-theme="light"]) .form-group input,
html:not([data-theme="light"]) .form-group select,
html:not([data-theme="light"]) .form-group textarea {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus,
html:not([data-theme="light"]) .form-group input:focus,
html:not([data-theme="light"]) .form-group select:focus,
html:not([data-theme="light"]) .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.2);
}

/* Buttons Dark Mode */
html[data-theme="dark"] .theme-toggle,
html:not([data-theme="light"]) .theme-toggle {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

html[data-theme="dark"] .theme-toggle:hover,
html:not([data-theme="light"]) .theme-toggle:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Footer Dark Mode */
html[data-theme="dark"] .footer,
html:not([data-theme="light"]) .footer {
  background: #0d1115;
  border-top: 1px solid var(--border-color);
}

html[data-theme="dark"] .footer-brand p,
html:not([data-theme="light"]) .footer-brand p {
  color: var(--text-muted);
}

html[data-theme="dark"] .footer h4,
html:not([data-theme="light"]) .footer h4 {
  color: var(--text-primary);
}

html[data-theme="dark"] .footer-links a,
html:not([data-theme="light"]) .footer-links a {
  color: var(--text-muted);
}

html[data-theme="dark"] .footer-links a:hover,
html:not([data-theme="light"]) .footer-links a:hover {
  color: var(--accent);
}

html[data-theme="dark"] .social-link,
html:not([data-theme="light"]) .social-link {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

html[data-theme="dark"] .footer-bottom,
html:not([data-theme="light"]) .footer-bottom {
  border-top-color: var(--border-color);
  color: var(--text-muted);
}

/* CTA Section Dark Mode */
html[data-theme="dark"] .cta,
html:not([data-theme="light"]) .cta {
  background: var(--bg-secondary);
}

/* About Section Dark Mode */
html[data-theme="dark"] .about-text h2,
html:not([data-theme="light"]) .about-text h2 {
  color: var(--text-primary);
}

html[data-theme="dark"] .about-text p,
html:not([data-theme="light"]) .about-text p {
  color: var(--text-secondary);
}

/* Inline Style Fix for gray-text */
html[data-theme="dark"] .vertical-card p[style*="color: var(--gray-text)"],
html[data-theme="dark"] .product-card p[style*="color: var(--gray-text)"],
html[data-theme="dark"] .service-card p[style*="color: var(--gray-text)"],
html[data-theme="dark"] ul li[style*="color: var(--gray-text)"],
html:not([data-theme="light"]) .vertical-card p[style*="color: var(--gray-text)"],
html:not([data-theme="light"]) .product-card p[style*="color: var(--gray-text)"],
html:not([data-theme="light"]) .service-card p[style*="color: var(--gray-text)"],
html:not([data-theme="light"]) ul li[style*="color: var(--gray-text)"] {
  color: var(--text-secondary) !important;
}

/* Mobile Menu Dark Mode */
html[data-theme="dark"] .nav-menu,
html:not([data-theme="light"]) .nav-menu {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

/* Skip Link Dark Mode */
html[data-theme="dark"] .skip-link,
html:not([data-theme="light"]) .skip-link {
  background: var(--primary);
  color: var(--white);
}

/* Grid helper for contact page */
html[data-theme="dark"] .grid.grid-3,
html:not([data-theme="light"]) .grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  html[data-theme="dark"] .grid.grid-3,
  html:not([data-theme="light"]) .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html[data-theme="dark"] .grid.grid-3,
  html:not([data-theme="light"]) .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Social Buttons Dark Mode */
html[data-theme="dark"] .btn-secondary,
html:not([data-theme="light"]) .btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

html[data-theme="dark"] .btn-secondary:hover,
html:not([data-theme="light"]) .btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

/* Additional helper for sections with inline background */
html[data-theme="dark"] section[style*="background: var(--bg-light)"],
html:not([data-theme="light"]) section[style*="background: var(--bg-light)"] {
  background: var(--bg-primary) !important;
}

/* Theme Transition - Smooth switching */
html[data-theme="dark"],
html[data-theme="dark"] *,
html:not([data-theme="light"]) body,
html:not([data-theme="light"]) body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Prevent transition on toggle for instant feedback */
.theme-toggle,
.theme-toggle * {
  transition: none !important;
}

/* Image styling for dark mode - slight opacity for better integration */
html[data-theme="dark"] img:not([src*=".svg"]),
html:not([data-theme="light"]) img:not([src*=".svg"]) {
  opacity: 0.95;
}

html[data-theme="dark"] img:not([src*=".svg"]):hover,
html:not([data-theme="light"]) img:not([src*=".svg"]):hover {
  opacity: 1;
}

/* Section title dark mode */
html[data-theme="dark"] .section-title h2,
html:not([data-theme="light"]) .section-title h2 {
  color: var(--text-primary);
}

html[data-theme="dark"] .section-title p,
html:not([data-theme="light"]) .section-title p {
  color: var(--text-muted);
}

/* CTA content dark mode */
html[data-theme="dark"] .cta h2,
html:not([data-theme="light"]) .cta h2 {
  color: var(--text-primary);
}

html[data-theme="dark"] .cta p,
html:not([data-theme="light"]) .cta p {
  color: var(--text-secondary);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.visible { display: block !important; }

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

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

/* =====================================================
   LEGAL CONTENT (Privacy Policy & Terms)
   ===================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1.2rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.legal-section p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.legal-section ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.legal-section ul li {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  list-style: disc;
  line-height: 1.7;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: var(--primary-light);
}

.contact-info-box {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  border: 1px solid var(--border-color);
}

.contact-info-box p {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.contact-info-box a {
  color: var(--primary);
}

.last-updated {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Legal Content Dark Mode */
html[data-theme="dark"] .legal-section,
html:not([data-theme="light"]) .legal-section {
  border-color: var(--border-color);
}

html[data-theme="dark"] .contact-info-box,
html:not([data-theme="light"]) .contact-info-box {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

/* =====================================================
   END OF STYLESHEET
   ===================================================== */

