/* Complete redesign with elegant minimalist style matching reference */

/* Custom Color Palette - Beige/Cream/Sage Theme */
:root {
  --cream: #f5f3ed;
  --cream-dark: #ebe9e0;
  --sage: #8a9a7b;
  --sage-dark: #6d7a61;
  --dark-brown: #2d2d2a;
}

* {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* Custom font families */
.font-serif {
  font-family: "Cormorant Garamond", serif;
}

.font-body {
  font-family: "Inter", sans-serif;
}

/* Custom color classes */
.bg-cream {
  background-color: var(--cream);
}

.bg-cream-dark {
  background-color: var(--cream-dark);
}

.bg-sage {
  background-color: var(--sage);
}

.bg-sage-dark {
  background-color: var(--sage-dark);
}

.bg-dark-brown {
  background-color: var(--dark-brown);
}

.text-cream {
  color: var(--cream);
}

.text-sage {
  color: var(--sage);
}

.text-sage-dark {
  color: var(--sage-dark);
}

.text-dark-brown {
  color: var(--dark-brown);
}

.border-sage {
  border-color: var(--sage);
}

/* Elegant shadow system */
.shadow-elegant {
  box-shadow: 0 4px 24px rgba(45, 45, 42, 0.08);
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Updated focus styles for minimalist design */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Elegant custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sage-dark);
}

/* Refined fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Improve image loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth transitions for all interactive elements */
button,
a {
  transition: all 0.3s ease;
}

/* Refined form input styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(138, 154, 123, 0.1);
}

input,
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Elegant cookie popup animation */
#cookiePopup {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Refined text selection color */
::selection {
  background-color: var(--sage);
  color: white;
}

::-moz-selection {
  background-color: var(--sage);
  color: white;
}

/* Added flip card styles */
.flip-card {
  position: relative;
  perspective: 1000px;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-card:hover {
  transform: translateY(-4px);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Added expandable item styles */
.expandable-item {
  transition: all 0.3s ease;
}

.expandable-item:hover {
  padding-left: 8px;
}

.expand-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.expand-icon {
  transition: transform 0.3s ease;
}

/* Hover effects for case cards */
.group:hover img {
  transform: scale(1.05);
}

/* Team member hover effects */
.group:hover .border-cream-dark {
  border-color: var(--sage);
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  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;
    scroll-behavior: auto !important;
  }
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .flip-card {
    min-height: auto;
  }
}

/* Additional utility classes for elegant design */
.tracking-widest {
  letter-spacing: 0.15em;
}

.leading-relaxed {
  line-height: 1.75;
}

.font-light {
  font-weight: 300;
}

/* Border opacity utilities */
.border-sage\/10 {
  border-color: rgba(138, 154, 123, 0.1);
}

.border-sage\/20 {
  border-color: rgba(138, 154, 123, 0.2);
}

/* Text opacity utilities */
.text-dark-brown\/70 {
  color: rgba(45, 45, 42, 0.7);
}

.text-dark-brown\/80 {
  color: rgba(45, 45, 42, 0.8);
}

.text-cream\/50 {
  color: rgba(245, 243, 237, 0.5);
}

.text-cream\/70 {
  color: rgba(245, 243, 237, 0.7);
}

.text-cream\/80 {
  color: rgba(245, 243, 237, 0.8);
}

/* Background opacity utilities */
.bg-dark-brown\/20 {
  background-color: rgba(45, 45, 42, 0.2);
}

.bg-dark-brown\/80 {
  background-color: rgba(45, 45, 42, 0.8);
}

.bg-sage\/10 {
  background-color: rgba(138, 154, 123, 0.1);
}

.bg-sage\/20 {
  background-color: rgba(138, 154, 123, 0.2);
}

.bg-cream\/95 {
  background-color: rgba(245, 243, 237, 0.95);
}

/* Additional border utilities */
.border-cream\/10 {
  border-color: rgba(245, 243, 237, 0.1);
}
