/*
Theme Name: Texas Elite
Theme URI: https://topsintexas.com
Author: Rod
Description: Custom theme for Texas Elite Luxury Directory. Includes Custom Post Types for Businesses.
Version: 2.50
Text Domain: texas-elite
*/

:root {
    /* Brand Colors */
    --color-brand-gold: hsl(45 100% 50%);
    --color-brand-navy: hsl(220 40% 15%);
    --color-brand-red: hsl(350 80% 40%);

    /* Light Mode Variables (Default) */
    --background: #ffffff;
    --foreground: #0f172a;
    /* Navy/Black */
    --card: #ffffff;
    --card-foreground: #0f172a;

    /* Primary - Navy Blue */
    --primary: #1e293b;
    --primary-foreground: #fefce8;
    /* Off-white Gold */

    /* Secondary - Light Cream */
    --secondary: #fdfbf7;
    --secondary-foreground: #1e293b;

    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #ca8a04;
    /* Gold Accent */
    --accent-foreground: #ffffff;
    --border: #e2e8f0;

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --radius: 0px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- UTILITIES --- */

/* Layout */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-12 {
    padding-top: 3rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-4 {
    margin-left: 1rem;
}

/* Colors */
.bg-background {
    background-color: var(--background);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-white {
    background-color: #ffffff;
}

.text-foreground {
    color: var(--foreground);
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-accent {
    color: var(--accent);
}

.text-accent-foreground {
    color: var(--accent-foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-white {
    color: #ffffff;
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-accent:hover {
    color: var(--accent);
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:bg-accent:hover {
    background-color: var(--accent);
}

.hover\:bg-secondary:hover {
    background-color: var(--secondary);
}

.hover\:bg-primary\/90:hover {
    background-color: var(--primary);
    opacity: 0.9;
}

/* Borders */
.border-b {
    border-bottom: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-transparent {
    border-color: transparent;
}

.border-primary {
    border-color: var(--primary);
}

/* Typography */
.font-heading {
    font-family: var(--font-heading);
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

/* Luxury Typography Utilities */
.drop-cap::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.85;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--accent);
}

.luxury-quote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--muted-foreground);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.uppercase {
    text-transform: uppercase;
}

.leading-none {
    line-height: 1;
}

.text-decoration-none {
    text-decoration: none;
}

/* Components */
.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-none {
    border-radius: 0;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Responsive */
.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:w-auto {
        width: auto;
    }

    .sm\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .md\:pt-16 {
        padding-top: 4rem;
    }

    .md\:gap-12 {
        gap: 3rem;
    }

    .md\:gap-6 {
        gap: 1.5rem;
    }

    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:justify-start {
        justify-content: flex-start;
    }

    .md\:inline-flex {
        display: inline-flex;
    }

    .md\:flex-none {
        flex: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

/* Feature Specific: Search Overlay */
#search-overlay {
    display: none;
    background: var(--background);
    border-top: 1px solid var(--border);
    animation: slideDown 0.2s ease-out;
}

#search-overlay.open {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Feature Specific: Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--background);
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
}

#mobile-menu.open {
    display: block;
    transform: translateX(0);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile-menu-overlay.open {
    display: block;
}

/* Header Menu Styling */
nav ul.flex {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul.flex li a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

nav ul.flex li a:hover {
    color: var(--accent);
}

nav ul.flex li.current-menu-item a {
    color: var(--primary);
    font-weight: 700;
}