/*
File: wp-content/themes/brh-storefront-child/style.css
Theme Name: BRH Storefront Child
Theme URI: https://bestrenthub.com
Description: Custom child theme for BestRentHub — built on Storefront. Light background, animated multi-colour gradient accents (teal, blue, yellow, red, pink), pill/oval buttons and nav elements, gradient card components.
Author: BestRentHub
Template: storefront
Version: 1.0.0
*/

/* ==========================================================================
   1. DESIGN TOKENS (CSS variables — change these once, everything updates)
   ========================================================================== */

:root {
    /* Core palette */
    --brh-teal:   #14B8A6;
    --brh-blue:   #3B82F6;
    --brh-yellow: #FBBF24;
    --brh-red:    #F43F5E;
    --brh-pink:   #EC4899;

    /* Light-mode neutrals — background is NEVER black/dark in this theme */
    --brh-bg:        #FFFFFF;
    --brh-bg-soft:   #FAFAFC;
    --brh-border:    #ECECF2;
    --brh-text:      #1F2430;
    --brh-text-soft: #6B7280;

    /* The signature multi-colour gradient — used sparingly, on purpose */
    --brh-gradient-main: linear-gradient(
        100deg,
        var(--brh-teal) 0%,
        var(--brh-blue) 28%,
        var(--brh-yellow) 52%,
        var(--brh-red) 75%,
        var(--brh-pink) 100%
    );

    /* Softer wash version, for card backgrounds / shading */
    --brh-gradient-wash: linear-gradient(
        120deg,
        rgba(20,184,166,0.10) 0%,
        rgba(59,130,246,0.10) 28%,
        rgba(251,191,36,0.10) 52%,
        rgba(244,63,94,0.10) 75%,
        rgba(236,72,153,0.10) 100%
    );

    --brh-radius-pill: 999px;
    --brh-radius-card: 20px;
    --brh-shadow-card: 0 4px 20px rgba(31,36,48,0.06);
    --brh-shadow-card-hover: 0 10px 30px rgba(31,36,48,0.12);
    --brh-transition: all 0.25s ease;
}

/* ==========================================================================
   2. BASE / RESET LAYER
   ========================================================================== */

body.brh-theme {
    background: var(--brh-bg);
    color: var(--brh-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.brh-theme a {
    color: var(--brh-blue);
    text-decoration: none;
}

body.brh-theme h1,
body.brh-theme h2,
body.brh-theme h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   3. ANIMATED GRADIENT BACKGROUND UTILITY
   (used behind hero / featured band — NOT applied to full page body)
   ========================================================================== */

@keyframes brhGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brh-gradient-band {
    background: linear-gradient(
        270deg,
        var(--brh-teal),
        var(--brh-blue),
        var(--brh-yellow),
        var(--brh-red),
        var(--brh-pink)
    );
    background-size: 400% 400%;
    animation: brhGradientShift 14s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
    .brh-gradient-band {
        animation: none;
    }
}

/* ==========================================================================
   4. PILL / OVAL BUTTONS
   ========================================================================== */

.brh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--brh-radius-pill);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--brh-transition);
    white-space: nowrap;
}

.brh-btn-primary {
    background: var(--brh-gradient-main);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 6px 16px rgba(59,130,246,0.25);
}

.brh-btn-primary:hover {
    background-position: 100% 0%;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(236,72,153,0.28);
}

.brh-btn-outline {
    background: transparent;
    color: var(--brh-text);
    border: 2px solid var(--brh-border);
}

.brh-btn-outline:hover {
    border-color: var(--brh-blue);
    color: var(--brh-blue);
}

.brh-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ==========================================================================
   5. NAV — pill-shaped nav items
   ========================================================================== */

.brh-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.brh-nav a {
    padding: 10px 20px;
    border-radius: var(--brh-radius-pill);
    color: var(--brh-text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--brh-transition);
}

.brh-nav a:hover,
.brh-nav a.is-active {
    background: var(--brh-gradient-wash);
    color: var(--brh-blue);
}

/* ==========================================================================
   6. PROPERTY CARDS — gradient-bordered, light shading, pill badges
   ========================================================================== */

.brh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.brh-property-card {
    position: relative;
    background: var(--brh-bg);
    border-radius: var(--brh-radius-card);
    padding: 4px;
    background-image: var(--brh-gradient-main);
    box-shadow: var(--brh-shadow-card);
    transition: var(--brh-transition);
}

.brh-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brh-shadow-card-hover);
}

.brh-property-card-inner {
    background: var(--brh-bg);
    border-radius: calc(var(--brh-radius-card) - 4px);
    overflow: hidden;
    height: 100%;
}

.brh-property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.brh-property-card-body {
    padding: 16px 18px 20px;
}

.brh-property-card-body h3 {
    font-size: 17px;
    margin: 0 0 6px;
}

.brh-property-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brh-text-soft);
    font-size: 13px;
    margin-bottom: 10px;
}

/* Pill badges for price / status / tier */

.brh-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--brh-radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.brh-badge-price {
    background: linear-gradient(90deg, var(--brh-teal), var(--brh-blue));
    color: #fff;
}

.brh-badge-status-available {
    background: rgba(20,184,166,0.12);
    color: var(--brh-teal);
}

.brh-badge-status-occupied {
    background: rgba(244,63,94,0.12);
    color: var(--brh-red);
}

.brh-badge-featured {
    background: linear-gradient(90deg, var(--brh-yellow), var(--brh-red));
    color: #fff;
}

.brh-badge-premium {
    background: linear-gradient(90deg, var(--brh-pink), var(--brh-blue));
    color: #fff;
}

/* Featured band — subtle wash, separates premium listings without heavy text labels */

.brh-featured-band {
    background: var(--brh-gradient-wash);
    border-radius: var(--brh-radius-card);
    padding: 24px;
    margin: 32px 0;
}

/* ==========================================================================
   7. SEARCH BAR — pill-shaped, gradient border
   ========================================================================== */

.brh-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brh-bg);
    border-radius: var(--brh-radius-pill);
    padding: 6px;
    background-image: var(--brh-gradient-main);
    max-width: 640px;
    margin: 0 auto;
}

.brh-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brh-bg);
    border-radius: calc(var(--brh-radius-pill) - 2px);
    width: 100%;
    padding: 4px 4px 4px 20px;
}

.brh-search-bar input[type="text"] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    padding: 10px 0;
}

/* ==========================================================================
   8. FORMS — submission form, login/register
   ========================================================================== */

.brh-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--brh-bg-soft);
    border-radius: var(--brh-radius-card);
    padding: 32px;
    border: 1px solid var(--brh-border);
}

.brh-form-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--brh-text);
}

.brh-form-wrap input[type="text"],
.brh-form-wrap input[type="number"],
.brh-form-wrap input[type="email"],
.brh-form-wrap input[type="tel"],
.brh-form-wrap select,
.brh-form-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--brh-border);
    font-size: 14px;
    background: #fff;
}

.brh-form-wrap textarea {
    border-radius: 16px;
    min-height: 100px;
}

.brh-form-actions {
    margin-top: 24px;
    text-align: right;
}

.brh-login-gate {
    text-align: center;
    padding: 48px 24px;
    background: var(--brh-gradient-wash);
    border-radius: var(--brh-radius-card);
}

.brh-login-gate .brh-btn {
    margin: 0 6px;
}

/* ==========================================================================
   9. PAGINATION — pill-shaped page numbers
   ========================================================================== */

.brh-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.brh-pagination a,
.brh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--brh-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--brh-text);
    border: 1px solid var(--brh-border);
    transition: var(--brh-transition);
}

.brh-pagination a:hover {
    border-color: var(--brh-blue);
    color: var(--brh-blue);
}

.brh-pagination .is-current {
    background: var(--brh-gradient-main);
    color: #fff;
    border: none;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */

@media (max-width: 782px) {
    .brh-card-grid {
        grid-template-columns: 1fr;
    }
    .brh-form-wrap {
        padding: 20px;
    }
    .brh-nav {
        gap: 4px;
    }
    .brh-nav a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ==========================================================================
   11. ACCESSIBILITY — visible keyboard focus, always
   ========================================================================== */

body.brh-theme a:focus-visible,
body.brh-theme button:focus-visible,
body.brh-theme input:focus-visible,
body.brh-theme textarea:focus-visible,
body.brh-theme select:focus-visible {
    outline: 3px solid var(--brh-blue);
    outline-offset: 2px;
}