/* Custom styles for St. Louis Cabinet Warehouse - Industrial Luxury Design */
:root {
    --transition-speed: 0.4s;
    --navy-900: #102a43;
    --navy-800: #243b53;
    --navy-700: #334e68;
    --gold-600: #ca8a04;
    --gold-500: #eab308;
    --warm-50: #fafaf9;
    --warm-700: #44403c;
}

/* Better typography - industrial luxury feel */
body {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
}

:where(h1) {
  font-size: 2rem;
  margin-block: 0.67em;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section - Industrial Luxury Cabinet Aesthetic */
#home {
    background: linear-gradient(135deg,
        #102a43 0%,    /* Navy 900 - Deep, stable base */
        #243b53 35%,   /* Navy 800 */
        #334e68 70%,   /* Navy 700 */
        #486581 100%   /* Navy 600 - Lighter at edges */
    );
    position: relative;
    overflow: hidden;
    color: white;
}

/* Subtle cabinet-inspired pattern overlay */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Gold accent glows */
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.05) 0%, transparent 50%),
        /* Subtle wood grain texture */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 4px
        );
    pointer-events: none;
    z-index: 0;
}

/* Vignette effect for depth */
#home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(15, 23, 42, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above overlays */
#home .hero-content {
    position: relative;
    z-index: 2;
}

#home .hero-content h1,
#home .hero-content p {
    color: white;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.4);
}

:where(h1) {
  font-size: 2rem;        /* pick a base size that fits your design */
  margin-block: 0.67em;   /* roughly the default top/bottom spacing */
}

/* Enhanced card styling - Industrial Luxury */
.card {
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(120, 113, 108, 0.15);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px -10px rgba(15, 23, 42, 0.15),
        0 10px 20px -5px rgba(15, 23, 42, 0.1);
    border-color: rgba(202, 138, 4, 0.4);
}

/* Subtle borders for section definition */
section {
    border-bottom: 1px solid rgba(120, 113, 108, 0.08);
}

section:last-of-type {
    border-bottom: none;
}

/* Industrial Luxury Button Styles - Gold Accent CTAs */
.btn-primary {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    border: 2px solid #a16207;
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
    border-color: #854d0e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

/* Secondary button - Navy outline */
.btn-secondary {
    background: white;
    border: 2px solid #102a43;
    color: #102a43;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #102a43;
    border-color: #102a43;
    color: white;
    transform: translateY(-2px);
}

/* Smooth transitions for all buttons */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Property card image container with placeholder */
.property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: #f3f4f6;
    position: relative;
}

/* Default placeholder for property images */
.property-image:not([style*="background-image"])::before {
    content: '🏠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

/* Better placeholder pattern */
.property-image[style*="placeholder.jpg"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.property-image[style*="placeholder.jpg"]::after {
    content: '🏘️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.5;
}

/* Subtle fade-in animation for sections */
section {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced contact form focus states - Industrial Luxury */
.form-control input:focus,
.form-control textarea:focus,
.input:focus,
.textarea:focus {
    border-color: #ca8a04;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15);
    outline: none;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fffef5;
}

.form-control input,
.form-control textarea,
.input,
.textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(120, 113, 108, 0.2);
}

.form-control input:hover,
.form-control textarea:hover,
.input:hover,
.textarea:hover {
    border-color: rgba(120, 113, 108, 0.35);
}

/* Label animation on focus - Gold accent */
.form-control:focus-within .label-text {
    color: #ca8a04;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Loading state */
.loading {
    color: hsl(var(--p));
}

/* Enhanced badge styling */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Better property card price styling */
.property-image {
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* Improve navbar with subtle shadow */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Add decorative element to section headings - Gold accent */
h2.text-4xl::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right,
        transparent 0%,
        #eab308 25%,
        #ca8a04 50%,
        #eab308 75%,
        transparent 100%
    );
    margin: 1.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}

/* Hover effect for scroll to top button - Gold glow */
#scrollToTop {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    border: 2px solid #a16207;
}

#scrollToTop:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(234, 179, 8, 0.4);
    background: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
}

/* Smooth mobile menu improvements */
@media (max-width: 1024px) {
    .dropdown-content {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
}

/* --- Hamburger Icon Styling --- */
.hamburger {
  position: relative;
  width: 24px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.hamburger span {
  position: absolute;
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor; /* matches btn text color */
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform-origin: center;
  transition: all 0.3s ease-in-out;
}

/* Position lines */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* --- Open State Animation --- */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Enhanced accessible button styles - maintain WCAG compliance */
.btn-primary,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    border: 2px solid #a16207;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
    border-color: #854d0e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.35);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(234, 179, 8, 0.5);
    outline-offset: 2px;
}

/* Enhanced text contrast utilities - Navy color scheme */
.text-base-content\/60,
.text-base-content\/70 {
    /* Warm muted text with better readability */
    color: rgba(68, 64, 60, 0.85);  /* warm-700 at 85% */
}

/* Footer text with enhanced contrast */
footer .text-base-content\/60 {
    color: rgba(51, 78, 104, 0.9);  /* navy-700 at 90% */
}

/* Ensure proper contrast on navy backgrounds */
.bg-primary .text-base-content,
.bg-navy-900 .text-base-content {
    color: #ffffff;
}

/* Hidden form field for honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
