@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --color-red: #b91c1c;
  --color-red-light: #fecaca;
  --color-red-dark: #7f1d1d;
}

body {
  font-family: var(--font-sans);
  color: #111827;
  background-color: #ffffff;
  line-height: 1.6;
}

.font-display {
  font-family: var(--font-display);
}

/* HERO ANIMATIONS */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content {
  animation: heroFadeInLeft 0.8s ease-out forwards;
}

.hero-images {
  animation: heroFadeInRight 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-image-1 {
  animation: heroFadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-image-2 {
  animation: heroFadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-image-3 {
  animation: heroFadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

/* SMOOTH SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* BUTTON HOVER EFFECTS */
a[class*="bg-red"], button {
  transition: all 0.3s ease;
}

a:hover, button:hover {
  text-decoration: none;
}

/* CARD HOVER EFFECTS */
.group {
  position: relative;
}

.group img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.group:hover img {
  transform: scale(1.05);
}

/* MARQUEE PLACEHOLDER - Can be used for scrolling text */
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* IMAGE TRANSITIONS */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* FOCUS STATES FOR ACCESSIBILITY */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  ring: 2px;
  ring-color: #b91c1c;
}

/* GRADIENT OVERLAY FOR SECTIONS */
.bg-gradient-overlay {
  position: relative;
  overflow: hidden;
}

.bg-gradient-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
}

/* SUBTLE GRAIN EFFECT (optional, can be applied to sections) */
.grain {
  position: relative;
  overflow: hidden;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.015),
      rgba(0, 0, 0, 0.015) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events: none;
  opacity: 0.3;
}

/* MOBILE NAV PANEL */
#mobileMenu {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

/* LINK UNDERLINE ANIMATION */
a[class*="hover:"] {
  position: relative;
}

/* TRANSFORM SCALE ON BUTTON HOVER */
.transform.hover\:scale-105 {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transform.hover\:scale-105:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.15);
}

/* RESPONSIVE TEXT SIZES */
@media (max-width: 768px) {
  .font-display {
    letter-spacing: -0.02em;
  }
}

/* CUSTOM SCROLL BAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #b91c1c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7f1d1d;
}

/* SECTION SPACING */
section {
  position: relative;
}

/* NESTED GRID ALIGNMENT */
.grid > * {
  min-width: 0;
}

/* FORM INPUTS STYLING */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
textarea,
select {
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* PLACEHOLDER TEXT STYLING */
::placeholder {
  opacity: 0.7;
  color: inherit;
}

/* ENSURE VISIBILITY OF ALL CONTENT ON FIRST PAINT */
/* No element should have opacity: 0 as a resting state */
/* All animations start from visible default state */

