/* Premium Web-App & Concept A Layout Styling for Carpintería DUMAR Nerja */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --wood-dark: #1E120B;
  --wood-header: #140C07;
  --wood-gold: #C8965D;
  --wood-gold-hover: #B58249;
  --wood-gold-light: #E5C39E;
  --sand-bg: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: #FFFFFF;
  color: #2D2723;
  line-height: 1.6;
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Text Gradient Gold */
.text-gradient-gold {
  background: linear-gradient(135deg, #F3D2A2 0%, #C8965D 50%, #9B6A34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Dynamic Header */
.glass-header {
  background: rgba(20, 12, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-header.scrolled {
  background: rgba(15, 9, 5, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Hero Dark Walnut Wood Background with subtle ambient gradient */
.hero-wood-bg {
  background-color: #140C07;
  background-image: 
    linear-gradient(to right, rgba(20, 12, 7, 0.92) 0%, rgba(20, 12, 7, 0.75) 50%, rgba(20, 12, 7, 0.45) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Golden Accent Line under Title */
.title-gold-line {
  width: 64px;
  height: 3.5px;
  background: linear-gradient(90deg, #C8965D 0%, #E5C39E 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(200, 150, 93, 0.3);
}

/* Concept A Gold Button with Premium Micro-interaction */
.btn-concept-gold {
  background: linear-gradient(135deg, #D4A373 0%, #C8965D 50%, #B58249 100%);
  color: #140C07;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(200, 150, 93, 0.28);
  position: relative;
  overflow: hidden;
}
.btn-concept-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}
.btn-concept-gold:hover::after {
  left: 100%;
}
.btn-concept-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 93, 0.42);
}
.btn-concept-gold:active {
  transform: translateY(0);
}

/* White Consultation Card with Web-App Polish */
.white-quote-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.white-quote-card:hover {
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.42);
}

/* Service Card Hover Zoom & Elevation */
.service-card {
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 150, 93, 0.4);
}
.service-img-wrap {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.service-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover img {
  transform: scale(1.06);
}

/* Vibrant & High-Visibility Range Input Slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  padding: 8px 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: linear-gradient(90deg, #C8965D 0%, #E5C39E 100%);
  border-radius: 7px;
  border: 1.5px solid #E5C39E;
  box-shadow: 0 0 14px rgba(200, 150, 93, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
input[type=range]::-webkit-slider-thumb {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #C8965D;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 18px rgba(200, 150, 93, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #FAF8F5;
  border-color: #E5C39E;
}

/* Calculator Active Button Color Highlights */
.calc-btn.active {
  background: linear-gradient(135deg, #3D2314 0%, #1E120B 100%) !important;
  border-color: #C8965D !important;
  box-shadow: 0 8px 20px rgba(200, 150, 93, 0.35), inset 0 0 12px rgba(200, 150, 93, 0.15) !important;
}
.calc-btn.active i {
  color: #C8965D !important;
}
.calc-btn.active span {
  color: #FFFFFF !important;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.reveal-left {
  transform: translateX(-35px);
}
.reveal-on-scroll.reveal-right {
  transform: translateX(35px);
}
.reveal-on-scroll.reveal-scale {
  transform: scale(0.94);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Modal Spring Scale In */
.modal-backdrop {
  background: rgba(12, 7, 4, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
.modal-content-animated {
  animation: springModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes springModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Floating WhatsApp Widget Pulse Glow */
.wa-pulse-ring {
  position: relative;
}
.wa-pulse-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  background: #25D366;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #140C07;
}
::-webkit-scrollbar-thumb {
  background: #C8965D;
  border-radius: 5px;
  border: 2px solid #140C07;
}
::-webkit-scrollbar-thumb:hover {
  background: #B58249;
}
