/* ==========================================================================
   Novo Design & Build (novodb.ro) — Custom Stylesheet & Design Tokens
   Warm Minimalist Luxury & Architectural Rigor
   ========================================================================== */

:root {
  --novo-canvas: #f4f0e8;
  --novo-surface: #FFFFFF;
  --novo-subtle: #eae4d8;
  --novo-border: #ded7c8;
  --novo-dark: #1f1f1d;
  --novo-dark-deep: #161614;
  --novo-dark-secondary: #2a2a27;
  --novo-muted: #4e4d47;
  --novo-faded: #706f66;
  --novo-terracotta: #c8643c;
  --novo-terracotta-dark: #b0542f;
  --novo-terracotta-light: #dd7a53;
  --novo-terracotta-tint: rgba(200, 100, 60, 0.12);
  --novo-gold: #c8643c;
  --novo-gold-deep: #a84e2a;
  --novo-gold-light: #dd7a53;
  --novo-gold-tint: rgba(200, 100, 60, 0.12);
  --novo-border-subtle: rgba(31, 31, 29, 0.08);
  --novo-border-gold: rgba(200, 100, 60, 0.28);
  --whatsapp: #25D366;
  --whatsapp-deep: #128C7E;
}

/* Base Smooth Scrolling & Typography Setup */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--novo-canvas);
  color: var(--novo-muted);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* Architectural Blueprint Grid Patterns */
.bg-arch-grid-light {
  background-image:
    linear-gradient(to right, rgba(31, 31, 29, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 31, 29, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-arch-grid-dark {
  background-image:
    linear-gradient(to right, rgba(244, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f4f0e8;
}
::-webkit-scrollbar-thumb {
  background: #ded7c8;
  border-radius: 5px;
  border: 2px solid #f4f0e8;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8643c;
}

/* Glassmorphism Styles */
.glass-header {
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-header.scrolled {
  background: rgba(244, 240, 232, 0.96);
  box-shadow: 0 4px 24px -2px rgba(31, 31, 29, 0.07);
  border-bottom-color: rgba(200, 100, 60, 0.25);
}

.glass-card-dark {
  background: rgba(24, 24, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(222, 215, 200, 0.9);
}

/* Animations & Keyframes */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.animate-float-soft {
  animation: floatSoft 4.5s ease-in-out infinite;
}

/* Before & After Interactive Image Slider */
.before-after-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.before-after-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  cursor: ew-resize;
  z-index: 20;
  transform: translateX(-50%);
}

.before-after-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #c8643c;
  color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.before-after-container:hover .before-after-slider-handle {
  transform: translate(-50%, -50%) scale(1.08);
  background: #b0542f;
}

/* Custom Scroll Reveal Utilities */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Focus Styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #c8643c;
  outline-offset: 3px;
}

/* Safe area padding on mobile devices for the sticky bottom bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}
