/* High Performance Styles & GPU-Accelerated Animations */

:root {
  --primary: 26 15% 48%;
  --primary-foreground: 0 0% 100%;
  --background: 40 33% 97%;
  --background-dark: 0 0% 11%;
  --surface: 0 0% 100%;
  --surface-dark: 0 0% 16%;
  --foreground: 0 0% 20%;
  --foreground-dark: 0 0% 90%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 20%;
  --secondary: 30 10% 90%;
  --secondary-foreground: 0 0% 20%;
  --muted: 30 10% 90%;
  --muted-foreground: 0 0% 45%;
  --accent: 26 15% 48%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 88%;
  --input: 0 0% 88%;
  --ring: 26 15% 48%;
  --radius: 0.125rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  font-family: 'Montserrat', sans-serif;
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ==========================================================================
   Typography & Color Hierarchy (Matching User Reference Image)
   ========================================================================== */

/* ==========================================================================
   Hero Section: Rich Dark Overlay & Crisp High-Contrast Typography
   ========================================================================== */

/* Dark Black Overlay over the Hero Image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65) !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
  z-index: 1;
}

/* Hero Text & Headings: Crisp Luminous White with Soft Text Shadow */
.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content p:not(.btn-hero-primary):not(.btn-hero-secondary),
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-banner-text,
.hero-content .hero-sentence {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* High-Contrast Hero CTA Buttons */
.btn-hero-primary {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-weight: 600 !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero-primary:hover {
  background-color: #f0f0f0 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.btn-hero-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-weight: 600 !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero-secondary:hover {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  transform: translateY(-1px);
}

/* 2. Headings & Titles in Regular Light Sections: Dark Editorial Charcoal */
section:not(.hero-section) h1:not(.text-white):not([class*="text-white"]),
section:not(.hero-section) h2:not(.text-white):not([class*="text-white"]),
section:not(.hero-section) h3:not(.text-white):not([class*="text-white"]),
.heading-color,
section:not(.hero-section) .font-display:not(.text-white):not([class*="text-white"]) {
  color: #2b2b2b;
}

/* 3. Sentences & Descriptive Body Copy in Regular Light Sections: Refined Muted Gray #737373 */
section:not(.hero-section) p:not(.text-white):not([class*="text-white"]):not(.btn):not([class*="btn-"]):not(.text-primary):not([class*="text-primary"]):not(.font-display),
.sentence-color,
.sentence-text,
.text-muted-foreground,
.prose p,
.prose-stone p,
.faq-content p,
.project-card p,
section:not(.hero-section) p.font-light:not(.text-white):not([class*="text-white"]),
.space-y-8 p,
.space-y-6 p,
.space-y-4 p {
  color: #737373 !important;
  font-weight: 300 !important;
  line-height: 1.625 !important;
  font-family: 'Montserrat', sans-serif;
}

section:not(.hero-section) p.text-sm:not(.text-white):not([class*="text-white"]),
section:not(.hero-section) p.text-base:not(.text-white):not([class*="text-white"]) {
  color: #737373 !important;
}

/* 4. Subtle Subheading Divider Line (#e5e5e5) */
.subheading-divider,
.space-y-8 .h-px {
  height: 1px;
  width: 3rem;
  background-color: #e5e5e5 !important;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Custom Scrollbar - Lightweight */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Hardware-Accelerated Soft Watercolor Floating Blobs */
@keyframes float-blob-1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(30px, 40px, 0) scale(1.15) rotate(90deg);
    opacity: 0.75;
  }
}

@keyframes float-blob-2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-40px, 30px, 0) scale(0.9) rotate(-120deg);
    opacity: 0.8;
  }
}

@keyframes float-blob-3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(-30px, -40px, 0) scale(1.1);
    opacity: 0.7;
  }
}

.animate-bloom-1 {
  animation: float-blob-1 18s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  border-radius: 50%;
}
.animate-bloom-2 {
  animation: float-blob-2 22s ease-in-out infinite;
  animation-delay: -4s;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  border-radius: 50%;
}
.animate-bloom-3 {
  animation: float-blob-3 25s ease-in-out infinite;
  animation-delay: -8s;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  border-radius: 50%;
}
.animate-bloom-4 {
  animation: float-blob-1 20s ease-in-out infinite;
  animation-delay: -12s;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  border-radius: 50%;
}
.animate-bloom-5 {
  animation: float-blob-2 24s ease-in-out infinite;
  animation-delay: -6s;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  border-radius: 50%;
}

/* Scroll Animation Transitions - GPU Accelerated */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal-right {
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Blur-Text Word Animation - GPU Clean */
.blur-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, -15px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.blur-word.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Vertical Testimonial Marquee - Pure GPU 3D Compositing (Upwards Infinite Flow) */
@keyframes marquee-scroll-up {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

@keyframes marquee-scroll-down {
  0% { transform: translate3d(0, -50%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-container {
  contain: paint;
  position: relative;
}

.marquee-col-1 {
  animation: marquee-scroll-up 28s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
.marquee-col-2 {
  animation: marquee-scroll-up 35s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
.marquee-col-3 {
  animation: marquee-scroll-up 31s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.marquee-container:hover .marquee-col-1,
.marquee-container:hover .marquee-col-2,
.marquee-container:hover .marquee-col-3,
.marquee-col-1:hover,
.marquee-col-2:hover,
.marquee-col-3:hover {
  animation-play-state: paused;
}

/* Testimonial Card Polish */
.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.12);
  border-color: rgba(217, 154, 56, 0.4);
}

.stars-rating {
  color: #d99a38;
  display: inline-flex;
  gap: 2px;
  font-size: 0.82rem;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  font-weight: 600;
}

/* Content Visibility Optimization for off-screen sections */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Lightbox Modal */
.lightbox-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  will-change: opacity;
}
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-panel {
  transform: translate3d(0, -100%, 0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translate3d(0, 0, 0);
}

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 250px;
  opacity: 1;
}
.faq-item .faq-icon {
  transition: transform 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Form Styles */
.form-input {
  width: 100%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}
