/* Eryck M. Photography - Refined Editorial Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-main: #faf8f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f2eee9;
  --text-primary: #141414;
  --text-muted: #5e6266;
  --text-light: #888d92;
  --accent-gold: #b89354;
  
  /* Muted Mauve & Slate Blue Color Palette */
  --accent-blue: #4b6375;
  --accent-blue-hover: #394e5d;
  --accent-mauve: #7b5e68;
  --accent-mauve-hover: #654a54;
  --accent-forest: #2f4a3a;
  --accent-forest-hover: #23382c;

  --border-color: rgba(20, 20, 20, 0.08);
  --border-dark: rgba(20, 20, 20, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
}

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

/* Typography refinements */
h1, h2, h3, h4, .font-serif-title {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #d4cfc7;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Clean Underline Links */
.link-editorial {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.link-editorial::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1.5px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-primary);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.link-editorial:hover {
  color: var(--text-primary);
}
.link-editorial:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Standardized Button System - Pill Shape with Clean Editorial Typography */
/* Buttons use forest green (updated 2026-11-17) */
.btn-muted-blue {
  background-color: var(--accent-forest);
  color: #ffffff;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-muted-blue:hover {
  background-color: var(--accent-forest-hover);
  box-shadow: 0 6px 18px rgba(47, 74, 58, 0.3);
  transform: translateY(-1.5px);
}

.btn-muted-mauve {
  background-color: var(--accent-forest);
  color: #ffffff;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-muted-mauve:hover {
  background-color: var(--accent-forest-hover);
  box-shadow: 0 6px 18px rgba(47, 74, 58, 0.3);
  transform: translateY(-1.5px);
}

/* HERO MULTI-CARD REEL STYLING WITH EDGE BLUR FOCUS */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 80%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.06);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

@media (min-width: 640px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 2 * 1.25rem) / 2.4);
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 4 * 1.25rem) / 3.8);
  }
}

/* Standardized 4x5 Crop with Top-Anchored Head Protection */
.carousel-slide img, .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.carousel-dot.active {
  background-color: #ffffff;
  width: 24px;
  border-radius: 4px;
}

/* Portfolio Hover Effects - Restrained & Sharp */
.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: #eee9e2;
  aspect-ratio: 4 / 5;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item .gallery-overlay {
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.6) 0%, rgba(20, 20, 20, 0.05) 50%, transparent 100%);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Filter Tab Styling */
.tab-filter {
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}
.tab-filter.active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.tab-filter:hover:not(.active) {
  color: var(--text-primary);
}

/* Form Input Styling */
.input-editorial {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-primary);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-editorial:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

/* Modals */
#lightboxModal, #inquiryModal {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#lightboxModal.active, #inquiryModal.active {
  opacity: 1;
  visibility: visible;
}

/* Numbered Feature Cards - Hover & Scroll Animations */
.how-it-works-card {
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.45s ease-out;
  will-change: transform, opacity;
}

.how-it-works-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background-color: #ffffff !important;
  border-color: rgba(20, 20, 20, 0.15) !important;
}

.how-it-works-card:hover .card-number {
  color: var(--accent-mauve-hover);
}

/* Scroll-In Entrance Animation */
.how-it-works-card.scroll-init {
  opacity: 0;
  transform: translateY(20px);
}

.how-it-works-card.scroll-init.in-view {
  opacity: 1;
  transform: translateY(0);
}

.how-it-works-card.scroll-init.in-view:hover {
  transform: scale(1.03);
}
