:root {
    /* Primary Colors - High Contrast Red/White */
    --color-primary: #dc2626;
    /* Red 600 */
    --color-primary-dark: #b91c1c;
    /* Red 700 */
    --color-secondary: #f59e0b;
    /* Amber 500 */

    /* Neutral Colors - Clean & Professional */
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    /* Slate 50 */
    --color-bg-card: #ffffff;

    /* Text Colors - High Contrast */
    --color-text: #0f172a;
    /* Slate 900 - Almost Black */
    --color-text-muted: #475569;
    /* Slate 600 - Readable Grey */
    --color-text-light: #94a3b8;
    /* Slate 400 - Low priority only */
    --color-border: #e2e8f0;
    /* Slate 200 */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 4px 14px rgba(220, 38, 38, 0.2);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    /* Dark text on light background */
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

/* Typography Extras */
h1,
h2,
h3 {
    font-family: var(--font-heading);
}

p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .menu-bar {
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.mobile-nav a {
    font-weight: 700;
    color: #0f172a;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-primary);
    transform: translateX(2px);
}

.mobile-nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-glow);
}

body.nav-open .mobile-nav {
    display: flex;
}

body.nav-open .menu-toggle .menu-bar:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle .menu-bar:nth-child(3) {
    opacity: 0;
}

body.nav-open .menu-toggle .menu-bar:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

.text-white {
    color: #ffffff !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.section-padding {
    padding: 5rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text) !important;
}

.btn-secondary:hover {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

/* Cards */
.glass-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.1);
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .header-inner {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .main-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Override inline dark form styles across pages */
form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
form select,
form textarea {
    background: #ffffff !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: none !important;
}

form input::placeholder,
form textarea::placeholder {
    color: #94a3b8 !important;
}

/* Listings Page */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.listings-filter {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.listings-filter .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: none;
    min-height: 40px;
}

.listings-filter .btn-primary {
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.25);
}

.listings-filter .btn-secondary {
    background: transparent;
    border-color: transparent;
}

.listings-filter .btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s;
    display: block;
}

.listing-card-image-container {
    position: relative;
    height: 220px;
    background: #334155;
}

.listing-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
}

.listing-card-content {
    padding: 1.5rem;
}

.listing-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.listing-card-meta {
    margin-bottom: 0.75rem;
}

.listing-card-fee {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 999px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.listing-card-options {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.75rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.5rem;
}

.listing-card-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.listing-card-option-title {
    font-weight: 700;
    display: block;
}

.listing-card-option small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.listing-card-option-price {
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.option-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.option-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f8fafc;
}

.option-card-body {
    padding: 1.25rem;
}

.option-card-body h4 {
    margin-bottom: 0.35rem;
}

.option-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.option-price {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    font-weight: 700;
    color: var(--color-text);
}

.included-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: var(--color-text-muted);
    padding-left: 0;
}

.included-list li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

.investment-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Mobile Responsiveness for Listings */
@media (max-width: 900px) {
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .listings-filter {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .listings-filter .btn {
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        /* Full width cards on mobile */
        gap: 1.5rem;
    }
}

/* Listing Details Page */
.listing-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.listing-hero-image-container {
    height: 400px;
    background: #334155;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.listing-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-sidebar-sticky {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .listing-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .listing-hero-image-container {
        height: 250px;
    }

    .listing-sidebar-sticky {
        position: static;
    }
}

/* Transform Page */
.transform-hero-section {
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: white;
    padding: 6rem 0;
}

.transform-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.transform-stats-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transform-stats-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.transform-stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
}

.transform-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #fee2e2;
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.transform-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .transform-hero-section {
        padding: 4rem 0;
    }

    .transform-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .transform-services-grid {
        grid-template-columns: 1fr;
    }

    .transform-stats-grid {
        flex-direction: column;
    }

    .transform-form-grid {
        grid-template-columns: 1fr;
    }
}
