/* Custom CSS for Carmona Cash Quick PHP */

/* Theme variables from original Tailwind design system */
@layer base {
  :root {
    /* Clean White Design with Black Text */
    --background: 0 0% 100%;
    --foreground: 0 0% 0%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 0%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 0%;

    /* Primary: Clean Black */
    --primary: 0 0% 0%;
    --primary-foreground: 0 0% 100%;
    --primary-hover: 0 0% 20%;

    /* Secondary: Light Gray sections */
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 0%;
    --secondary-hover: 0 0% 92%;

    /* Muted elements */
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;

    /* Accent: Light gray */
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 0%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 0 0% 90%;
    --input: 0 0% 100%;
    --ring: 0 0% 20%;

    /* Minimal Design Tokens */
    --shadow-subtle: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.2s ease-in-out;

    --radius: 0.75rem;
    
    /* Sidebar */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 0 0% 0%;
    --sidebar-primary: 0 0% 0%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 96%;
    --sidebar-accent-foreground: 0 0% 0%;
    --sidebar-border: 0 0% 90%;
    --sidebar-ring: 0 0% 20%;
  }

  .dark {
    --background: 0 0% 100%;
    --foreground: 0 0% 0%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 0%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 0%;
    --primary: 0 0% 0%;
    --primary-foreground: 0 0% 100%;
    --primary-hover: 0 0% 20%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 0%;
    --secondary-hover: 0 0% 92%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 0%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 90%;
    --input: 0 0% 100%;
    --ring: 0 0% 20%;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 0 0% 0%;
    --sidebar-primary: 0 0% 0%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 96%;
    --sidebar-accent-foreground: 0 0% 0%;
    --sidebar-border: 0 0% 90%;
    --sidebar-ring: 0 0% 20%;
  }
}

:root {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}


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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Button hover effects */
.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: hsl(var(--primary-hover));
    color: hsl(var(--primary-foreground));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Card hover effects */
.card-hover {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.card-hover:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

/* Force hero section to fill viewport on mobile and fix image fit */
@media (max-width: 768px) {
    #hero-section {
        min-height: 100vh !important;
        height: 100dvh !important; /* Modern mobile browsers */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #hero-section > .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    max-height: 300px;
}

/* Loading spinner */
.spinner {
    border: 4px solid hsl(var(--muted));
    border-top: 4px solid hsl(var(--primary));
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
    border: 1px solid #e2e8f0;
}

/* FAQ accordion */
.faq-content {
    transition: all 0.3s ease;
}

/* Sticky CTA button */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* Property gallery hover effects */
.property-image {
    transition: all 0.3s ease;
    overflow: hidden;
}

.property-image:hover img {
    transform: scale(1.05);
}

.property-image img {
    transition: transform 0.3s ease;
}

/* Stats counter animation */
.stat-number {
    font-weight: 700;
    color: hsl(var(--primary));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary-hover));
}

/* Responsive utilities */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Header nav force black bold */
.main-header-nav a, .main-header-nav a:visited, .main-header-nav a:active, .main-header-nav a:link, .main-header-nav a:focus {
    color: #000 !important;
    font-weight: bold !important;
}
.main-header-nav a:hover {
    text-decoration: underline !important;
}

/* Mobile menu styles - Force visibility */
#mobile-menu {
    background-color: hsl(var(--primary)) !important;
    border-top: 1px solid hsl(var(--border)) !important;
    padding: 1rem 0 !important;
    position: relative !important;
    z-index: 999 !important;
    width: 100% !important;
}

#mobile-menu a {
    color: #000 !important;
    display: block !important;
    padding: 0.75rem 1rem !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    margin: 0.25rem 0 !important;
}

#mobile-menu a:hover {
    background-color: hsl(var(--primary-hover)) !important;
    border-radius: 0.375rem !important;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
