/* Custom Styles for Processoryvia Hub - Minimal & Editorial Design */

/* CSS Variables for Color Palette */
:root {
  --cream: #f5f1e8;
  --soft-cream: #faf8f3;
  --navy: #2c3e50;
  --charcoal: #4a5568;
  --warm-gray: #d4c5b9;
  --soft-yellow: #e8d5a8;
  --white: #ffffff;
  --gradient-start: #f5f1e8;
  --gradient-end: #d9e8f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background-color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Typography */
.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

.font-sans {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Color Classes */
.bg-cream {
  background-color: var(--cream);
}

.bg-soft-cream {
  background-color: var(--soft-cream);
}

.bg-navy {
  background-color: var(--navy);
}

.bg-soft-yellow {
  background-color: var(--soft-yellow);
}

.text-cream {
  color: var(--cream);
}

.text-soft-cream {
  color: var(--soft-cream);
}

.text-navy {
  color: var(--navy);
}

.text-charcoal {
  color: var(--charcoal);
}

.text-warm-gray {
  color: var(--warm-gray);
}

.text-soft-yellow {
  color: var(--soft-yellow);
}

.border-cream {
  border-color: var(--cream);
}

.border-warm-gray {
  border-color: var(--warm-gray);
}

.border-navy {
  border-color: var(--navy);
}

/* Gradient Background */
.bg-gradient-cream-blue {
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Shadows */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  max-height: 400px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -500px;
  right: 20px;
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup.active {
  bottom: 20px;
}

@media (max-width: 640px) {
  .cookie-popup {
    right: 10px;
    left: 10px;
  }
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

input[type="checkbox"]:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--charcoal);
}

/* Smooth Transitions */
a,
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Styles */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(245, 241, 232, 0.95);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Image Hover Effects */
img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Team Card Styles */
.team-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-card.flipped {
  animation: flip 0.6s ease;
}

@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* Image Card Effects */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.image-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ Accordion Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Partner Logo Styles */
.partner-logo {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Section Spacing */
section {
  position: relative;
}

/* Container */
.container {
  max-width: 1280px;
}

/* Animation Utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animated class for scroll reveal */
.animated {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }

  .text-4xl {
    font-size: 2rem !important;
  }

  .text-3xl {
    font-size: 1.75rem !important;
  }
}

/* Button Hover Effects */
button:hover,
a.inline-block:hover {
  transform: translateY(-2px);
}

button:active,
a.inline-block:active {
  transform: translateY(0);
}

/* Card Hover Effects */
.bg-white:hover {
  transition: all 0.3s ease;
}

/* Loading State for Forms */
form.submitting {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Selection Color */
::selection {
  background-color: var(--soft-yellow);
  color: var(--navy);
}

::-moz-selection {
  background-color: var(--soft-yellow);
  color: var(--navy);
}

/* Print Styles */
@media print {
  header,
  footer,
  .cookie-popup,
  button {
    display: none;
  }

  body {
    background: white;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Text Balance for Headings */
h1,
h2,
h3 {
  text-wrap: balance;
}

/* Glass Effect for Cards */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 197, 185, 0.3);
}

/* Rounded Corners */
.rounded-2xl {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Page Transition */
body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Image Loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Links */
a {
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

/* Grid Gap */
.grid {
  gap: inherit;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Hover States for Interactive Elements */
.hover\:shadow-soft:hover {
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

/* Z-index Management */
header {
  z-index: 50;
}

.cookie-popup {
  z-index: 9999;
}

/* Aspect Ratios */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Text Truncation */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
