/* Complete redesign with Alfa Charlie aesthetic */

/* Custom Color Palette */
:root {
  --cream: #f5f3f0;
  --charcoal: #2c2c2c;
  --coral: #e85d54;
  --coral-dark: #d14a42;
}

/* Custom Font Configuration */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

/* Background Colors */
.bg-cream {
  background-color: var(--cream);
}

.bg-charcoal {
  background-color: var(--charcoal);
}

.bg-coral {
  background-color: var(--coral);
}

/* Text Colors */
.text-cream {
  color: var(--cream);
}

.text-charcoal {
  color: var(--charcoal);
}

.text-coral {
  color: var(--coral);
}

/* Hover States */
.hover\:text-coral:hover {
  color: var(--coral);
}

.hover\:text-coral-dark:hover {
  color: var(--coral-dark);
}

.hover\:bg-coral-dark:hover {
  background-color: var(--coral-dark);
}

.hover\:bg-charcoal:hover {
  background-color: var(--charcoal);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Elegant Shadow */
.shadow-elegant {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, opacity, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

/* Remove transition from specific elements */
.flip-card-inner,
.expand-card-content {
  transition: none;
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  height: 600px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Expand Card Styles */
.expand-card {
  transition: all 0.3s ease;
}

.expand-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.expand-card.expanded .expand-card-content {
  max-height: 500px;
}

.expand-card.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--coral);
}

/* Checkbox Custom Style */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--coral);
}

/* Button Hover Effects */
button,
a {
  cursor: pointer;
}

/* Mobile Menu Transition */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Cookie Popup Animation */
#cookiePopup {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Image Hover Effect */
img {
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Text Selection */
::selection {
  background-color: var(--coral);
  color: white;
}

::-moz-selection {
  background-color: var(--coral);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--coral);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--coral-dark);
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  transition: none;
}

/* Loading State for Form */
#contactForm.submitting {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  #cookiePopup,
  #burgerBtn {
    display: none;
  }
}

/* Border Colors */
.border-coral {
  border-color: var(--coral);
}

.border-charcoal {
  border-color: var(--charcoal);
}

/* Focus States */
.focus\:border-coral:focus {
  border-color: var(--coral);
}

/* Group Hover Effects */
.group:hover img {
  transform: scale(1.05);
}
