@tailwind base;
@tailwind components;
@tailwind utilities;

/* 
 * A.i.A REFORMAS // Ultra-Luxury Italian Architecture & Reforms System
 * Rich Champagne Gold, Deep Obsidian & Brushed Titanium Accents
 */

:root {
  --canvas: #101115;
  --card: rgba(16, 18, 24, 0.76);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(197, 180, 156, 0.45);
  --gold-300: #F3DEB8;
  --gold-400: #E5C388;
  --gold-500: #C5B49C;
  --gold-600: #9C8971;
  --gold-700: #8C6718;
  --text-primary: #F7F5F0;
  --text-secondary: #A8A399;
  --text-muted: #736F67;
}

body {
  background-color: #101115;
  color: #F7F5F0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luxurious Smooth Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #101115;
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 180, 156, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 180, 156, 0.55);
}

/* Multi-Layered Frosted Glass Cards with Golden Ambient Reflection */
.soft-glass-card {
  background: rgba(16, 18, 24, 0.76);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.soft-glass-card:hover {
  background: rgba(22, 25, 34, 0.88);
  border-color: rgba(197, 180, 156, 0.42);
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.8), 0 0 30px -4px rgba(197, 180, 156, 0.16), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* Floating Navbar Glass Dock */
.nav-floating-dock {
  background: rgba(12, 14, 19, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px -5px rgba(0, 0, 0, 0.65), 0 0 20px rgba(197, 180, 156, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Radiant Champagne Gold Button (Vogue Luxury Standard) */
.btn-delicate-champagne,
.btn-graphite-primary,
.btn-glow-gold {
  background: linear-gradient(135deg, #EAE3D5 0%, #C5B49C 45%, #A49279 100%);
  color: #171615 !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 22px rgba(197, 180, 156, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-delicate-champagne:hover,
.btn-graphite-primary:hover,
.btn-glow-gold:hover {
  background: linear-gradient(135deg, #F5EFE6 0%, #DECDB6 45%, #9C8971 100%);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 180, 156, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  filter: brightness(1.03);
}

/* Secondary Button with Subtle Champagne Border & Tint */
.btn-delicate-ghost,
.btn-graphite-ghost,
.btn-glow-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 180, 156, 0.28);
  color: #F7F5F0;
  transition: all 0.28s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-delicate-ghost:hover,
.btn-graphite-ghost:hover,
.btn-glow-ghost:hover {
  background: rgba(197, 180, 156, 0.08);
  border-color: rgba(197, 180, 156, 0.65);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(197, 180, 156, 0.2);
}

/* Luminous Gradient Text Utilities */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFFFFF 15%, #EAE3D5 50%, #C5B49C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-champagne-shimmer {
  background: linear-gradient(135deg, #EAE3D5 0%, #C5B49C 60%, #9C8971 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Elegant Glowing Badges */
.badge-gold {
  background: rgba(197, 180, 156, 0.1);
  border: 1px solid rgba(197, 180, 156, 0.3);
  color: #EAE3D5;
  box-shadow: none;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #A7F3D0;
  box-shadow: none;
}

.badge-azure {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #BAE6FD;
  box-shadow: none;
}

/* Segmented Control Tabs */
.segmented-track {
  background: rgba(10, 12, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 14px;
}

.segmented-item {
  border-radius: 10px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-item.active {
  background: rgba(197, 180, 156, 0.12);
  border: 1px solid rgba(197, 180, 156, 0.55);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(197, 180, 156, 0.22);
}

/* Infinite Marquee Styles */
.marquee-container {
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .reveal-on-scroll {
    transition-duration: 0.55s;
    transform: translateY(18px) translateZ(0);
  }
  .nav-floating-dock {
    padding-left: 12px;
    padding-right: 12px;
  }
  .btn-delicate-champagne,
  .btn-graphite-primary,
  .btn-glow-gold,
  .btn-delicate-ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    line-height: 1.25 !important;
  }
  .soft-glass-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  #whatsapp-floating-widget {
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    right: 16px !important;
  }
}

/* Golden Smooth Range Slider */
input[type=range].delicate-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type=range].delicate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C5B49C;
  cursor: pointer;
  border: 2px solid #101115;
  box-shadow: 0 0 16px rgba(197, 180, 156, 0.7);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type=range].delicate-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #EAE3D5;
}

input[type=range].delicate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C5B49C;
  cursor: pointer;
  border: 2px solid #101115;
  box-shadow: 0 0 16px rgba(197, 180, 156, 0.7);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type=range].delicate-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
  background: #EAE3D5;
}

/* Smooth curtain slider handle */
.slider-handle-glow {
  box-shadow: 0 0 25px rgba(197, 180, 156, 0.65), 0 0 12px rgba(255, 255, 255, 0.7);
}
