/* Custom styles for Clean Slate Real Estate */
:root {
    --transition-speed: 0.3s;
}

/* Better typography - more professional feel */
body {
    font-feature-settings: "kern" 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 background with real estate themed pattern */
#home {
    background-color: #0f766e;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 28l8-8v16l-8 8v-16zm0 0l-8-8v16l8 8v-16z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
    background-blend-mode: overlay;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Add subtle animated overlay for depth */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure content stays above the overlay */
#home .hero-content {
    position: relative;
    z-index: 1;
}

#home .hero-content h1,
#home .hero-content p {
    color: white;
}

: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 with better shadows */
.card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

/* Add subtle border to sections for better definition */
section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Custom button colors that complement the teal background */
.btn-primary {
    background-color: #e5a00d;
    border-color: #e5a00d;
    color: white;
}

.btn-primary:hover {
    background-color: #ca8a0a;
    border-color: #ca8a0a;
    color: white;
}

/* Smooth transitions for buttons */
.btn {
    transition: all var(--transition-speed) ease;
}

/* 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 */
.form-control input:focus,
.form-control textarea:focus,
.input:focus,
.textarea:focus {
    border-color: #e5a00d;
    box-shadow: 0 0 0 3px rgba(229, 160, 13, 0.15);
    outline: none;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.form-control input,
.form-control textarea,
.input,
.textarea {
    transition: all 0.2s ease;
}

/* Label animation on focus */
.form-control:focus-within .label-text {
    color: #e5a00d;
    font-weight: 600;
    transition: all 0.2s 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 */
h2.text-4xl::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #e5a00d, #0d9488);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Hover effect for scroll to top button */
#scrollToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 160, 13, 0.4);
}

/* 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);
}

.btn-primary,
.btn-primary:focus-visible {
    background-color: #b45309;   /* darker amber, ~5.0:1 with white text */
    border-color: #b45309;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #92400e;   /* hover state, still accessible */
    border-color: #92400e;
    color: #ffffff;
}

/* 2) Low-contrast utility text (.text-base-content/60, /70, etc.) */
/* Tailwind/DaisyUI escapes the slash, so we target it that way */
.text-base-content\/60,
.text-base-content\/70 {
    /* Slightly stronger text; still “muted” but passes on base-100/base-300 */
    color: rgba(31, 41, 55, 0.85);  /* approx slate-800 at 85% */
}

/* Footer text gets a tiny extra boost */
footer .text-base-content\/60 {
    color: rgba(17, 24, 39, 0.9);
}
