/* ==========================================================================
   Best in Phoenix — Homepage Styles
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --bip-orange: #E4572E;
    --bip-red: #B22222;
    --bip-sand: #F8F1E5;
    --bip-charcoal: #1E1E1E;
    --bip-white: #FFFFFF;
    --bip-orange-light: #F4714E;
    --bip-sand-dark: #EDE4D3;
    --bip-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --bip-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --bip-radius: 16px;
    --bip-radius-sm: 10px;
    --bip-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Transparent Nav → Solid on Scroll ---------- */
/* All rules scoped to body.page-template-page-home so they ONLY apply on homepage */

/* --- DEFAULT STATE: Transparent at top of page --- */
body.page-template-page-home #site-header,
body.page-template-page-home .site-header,
body.page-template-page-home .header-container,
body.page-template-page-home .main-nav {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transition: background 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

/* White nav link text */
body.page-template-page-home .main-nav a,
body.page-template-page-home .main-menu a,
body.page-template-page-home .main-menu > li > a,
body.page-template-page-home .header-container a,
body.page-template-page-home #site-header a {
    color: var(--bip-white) !important;
    transition: color 0.35s ease;
}

/* White "Add a Listing" button */
body.page-template-page-home .nav-button,
body.page-template-page-home .nav-button a,
body.page-template-page-home .header-button,
body.page-template-page-home .header-button a {
    color: var(--bip-white) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

/* White sign in / register area */
body.page-template-page-home .user-area a,
body.page-template-page-home .user-area span,
body.page-template-page-home .user-area i {
    color: var(--bip-white) !important;
    transition: color 0.35s ease;
}

/* White logo — invert image logos, color text logos */
body.page-template-page-home .site-logo img,
body.page-template-page-home .logo img,
body.page-template-page-home .header-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

body.page-template-page-home .site-logo a,
body.page-template-page-home .logo a,
body.page-template-page-home .header-logo a {
    color: var(--bip-white) !important;
    transition: color 0.35s ease;
}

/* White hamburger / mobile toggle icon */
body.page-template-page-home .mobile-nav-toggle i,
body.page-template-page-home .mobile-menu-trigger i,
body.page-template-page-home .hamburger-icon span {
    color: var(--bip-white) !important;
    background-color: var(--bip-white) !important;
    transition: color 0.35s ease, background-color 0.35s ease;
}

/* --- SCROLLED STATE: Solid background with dark text --- */
body.page-template-page-home #site-header.scrolled,
body.page-template-page-home .site-header.scrolled,
body.page-template-page-home .header-container.scrolled,
body.page-template-page-home .main-nav.scrolled,
body.page-template-page-home .scrolled #site-header,
body.page-template-page-home .scrolled .site-header,
body.page-template-page-home .scrolled .header-container,
body.page-template-page-home .scrolled .main-nav {
    background: var(--bip-white) !important;
    background-color: var(--bip-white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Dark nav links when scrolled */
body.page-template-page-home .scrolled .main-nav a,
body.page-template-page-home .scrolled .main-menu a,
body.page-template-page-home .scrolled .main-menu > li > a,
body.page-template-page-home .scrolled .header-container a,
body.page-template-page-home .scrolled #site-header a,
body.page-template-page-home .main-nav.scrolled a,
body.page-template-page-home .header-container.scrolled a,
body.page-template-page-home #site-header.scrolled a {
    color: var(--bip-charcoal) !important;
}

/* Dark "Add a Listing" button when scrolled */
body.page-template-page-home .scrolled .nav-button,
body.page-template-page-home .scrolled .nav-button a,
body.page-template-page-home .scrolled .header-button,
body.page-template-page-home .scrolled .header-button a {
    color: var(--bip-charcoal) !important;
    border-color: var(--bip-charcoal) !important;
}

/* Dark sign in / register when scrolled */
body.page-template-page-home .scrolled .user-area a,
body.page-template-page-home .scrolled .user-area span,
body.page-template-page-home .scrolled .user-area i {
    color: var(--bip-charcoal) !important;
}

/* Normal logo when scrolled */
body.page-template-page-home .scrolled .site-logo img,
body.page-template-page-home .scrolled .logo img,
body.page-template-page-home .scrolled .header-logo img {
    filter: none;
}

body.page-template-page-home .scrolled .site-logo a,
body.page-template-page-home .scrolled .logo a,
body.page-template-page-home .scrolled .header-logo a {
    color: var(--bip-charcoal) !important;
}

/* Dark hamburger / mobile toggle when scrolled */
body.page-template-page-home .scrolled .mobile-nav-toggle i,
body.page-template-page-home .scrolled .mobile-menu-trigger i,
body.page-template-page-home .scrolled .hamburger-icon span {
    color: var(--bip-charcoal) !important;
    background-color: var(--bip-charcoal) !important;
}

/* Also handle MyListing's own scroll classes as fallback */
body.page-template-page-home .header-scroll-active #site-header,
body.page-template-page-home .header-scroll-active .header-container,
body.page-template-page-home .header-scroll-active .main-nav,
body.page-template-page-home .header-scrolled #site-header,
body.page-template-page-home .header-scrolled .header-container,
body.page-template-page-home .header-scrolled .main-nav {
    background: var(--bip-white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ---------- Hide MyListing default footer on homepage ---------- */
.site-footer,
#site-footer,
.footer-widgets,
.footer-bottom-bar,
.c27-footer-section,
footer.c27-footer,
.c27-footer {
    display: none !important;
}

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

.bip-home {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--bip-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bip-home h1,
.bip-home h2,
.bip-home h3,
.bip-home h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.bip-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bip-section {
    padding: 80px 0;
}

.bip-section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bip-orange);
    margin-bottom: 12px;
}

.bip-section-title {
    font-size: 42px;
    color: var(--bip-charcoal);
    margin-bottom: 16px;
}

.bip-section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 560px;
    margin: 0 auto 48px;
}

.bip-text-center {
    text-align: center;
}

/* ---------- Scroll Reveal ---------- */
.bip-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--bip-transition), transform 0.7s var(--bip-transition);
}

.bip-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bip-reveal-delay-1 { transition-delay: 0.1s; }
.bip-reveal-delay-2 { transition-delay: 0.2s; }
.bip-reveal-delay-3 { transition-delay: 0.3s; }
.bip-reveal-delay-4 { transition-delay: 0.4s; }
.bip-reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   SECTION 1 — Hero
   ========================================================================== */
.bip-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--bip-sand) 0%, #F5D6C3 40%, #E8A87C 70%, var(--bip-orange) 100%);
    overflow: hidden;
    padding: 120px 0 160px;
}

.bip-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}

.bip-hero__title {
    font-size: 56px;
    color: var(--bip-charcoal);
    margin-bottom: 16px;
}

.bip-hero__subtitle {
    font-size: 20px;
    color: #4A3728;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Cactus SVG silhouettes */
.bip-hero__cactus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Search Form */
.bip-search {
    display: flex;
    background: var(--bip-white);
    border-radius: 60px;
    box-shadow: var(--bip-shadow-hover);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
}

.bip-search__input,
.bip-search__select {
    border: none;
    outline: none;
    padding: 18px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--bip-charcoal);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.bip-search__input {
    flex: 1;
    min-width: 0;
    padding-left: 28px;
}

.bip-search__input::placeholder {
    color: #999;
}

.bip-search__select {
    border-left: 1px solid #E8E0D5;
    cursor: pointer;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.bip-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bip-orange);
    color: var(--bip-white);
    border: none;
    padding: 18px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bip-transition);
    white-space: nowrap;
}

.bip-search__btn:hover {
    background: var(--bip-red);
}

.bip-search__btn svg {
    margin-right: 8px;
}

/* ==========================================================================
   SECTION 2 — Phoenix Is Voting
   ========================================================================== */
.bip-voting {
    background: var(--bip-white);
}

.bip-voting__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.bip-vote-card {
    position: relative;
    background: var(--bip-sand);
    border-radius: var(--bip-radius);
    padding: 32px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--bip-charcoal);
    transition: transform var(--bip-transition), box-shadow var(--bip-transition);
    overflow: hidden;
}

.bip-vote-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bip-shadow-hover);
}

.bip-vote-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.bip-vote-card__name {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--bip-charcoal);
}

.bip-vote-card__cta {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bip-orange);
    transition: color var(--bip-transition);
}

.bip-vote-card:hover .bip-vote-card__cta {
    color: var(--bip-red);
}

/* Pulse badge */
.bip-vote-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: var(--bip-orange);
    border-radius: 50%;
    animation: bip-pulse 2s ease-in-out infinite;
}

@keyframes bip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.6); }
}

/* ==========================================================================
   SECTION 3 — Browse Categories
   ========================================================================== */
.bip-categories {
    background: var(--bip-sand);
}

.bip-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bip-cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bip-white);
    border-radius: var(--bip-radius-sm);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--bip-charcoal);
    transition: transform var(--bip-transition), box-shadow var(--bip-transition);
}

.bip-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bip-shadow);
}

.bip-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bip-sand);
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
}

.bip-cat-card__label {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.bip-cat-card--all {
    background: var(--bip-orange);
    color: var(--bip-white);
}

.bip-cat-card--all .bip-cat-card__icon {
    background: rgba(255, 255, 255, 0.2);
}

.bip-cat-card--all .bip-cat-card__label {
    color: var(--bip-white);
}

/* ==========================================================================
   SECTION 4 — Own a Business? CTA
   ========================================================================== */
.bip-business-cta {
    background: var(--bip-charcoal);
    color: var(--bip-white);
}

.bip-business-cta .bip-section-label {
    color: var(--bip-orange-light);
}

.bip-business-cta .bip-section-title {
    color: var(--bip-white);
}

.bip-business-cta .bip-section-subtitle {
    color: #AAAAAA;
}

.bip-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.bip-tier-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bip-radius);
    padding: 32px 28px;
    transition: background var(--bip-transition), border-color var(--bip-transition);
}

.bip-tier-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.bip-tier-card--featured {
    border-color: var(--bip-orange);
    background: rgba(228, 87, 46, 0.08);
}

.bip-tier-card__badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.bip-tier-card__badge--free {
    background: rgba(255, 255, 255, 0.12);
    color: #CCCCCC;
}

.bip-tier-card__badge--verified {
    background: var(--bip-orange);
    color: var(--bip-white);
}

.bip-tier-card__badge--premier {
    background: var(--bip-red);
    color: var(--bip-white);
}

.bip-tier-card__title {
    font-size: 24px;
    color: var(--bip-white);
    margin-bottom: 16px;
}

.bip-tier-card__features {
    list-style: none;
    padding: 0;
}

.bip-tier-card__features li {
    font-size: 15px;
    color: #BBBBBB;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.bip-tier-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bip-orange);
    font-weight: 700;
}

.bip-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.bip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all var(--bip-transition);
    cursor: pointer;
    border: none;
}

.bip-btn--primary {
    background: var(--bip-orange);
    color: var(--bip-white);
}

.bip-btn--primary:hover {
    background: var(--bip-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(228, 87, 46, 0.35);
}

.bip-btn--outline {
    background: transparent;
    color: var(--bip-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bip-btn--outline:hover {
    border-color: var(--bip-white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.bip-btn--consultation {
    background: var(--bip-red);
    color: var(--bip-white);
    position: relative;
}

.bip-btn--consultation::before {
    content: '★ ';
}

.bip-btn--consultation:hover {
    background: #9A1C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(178, 34, 34, 0.35);
}

/* ==========================================================================
   SECTION 5 — Latest Guides
   ========================================================================== */
.bip-guides {
    background: var(--bip-white);
}

.bip-guides__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bip-post-card {
    background: var(--bip-white);
    border-radius: var(--bip-radius);
    overflow: hidden;
    box-shadow: var(--bip-shadow);
    transition: transform var(--bip-transition), box-shadow var(--bip-transition);
    text-decoration: none;
    color: var(--bip-charcoal);
    display: flex;
    flex-direction: column;
}

.bip-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bip-shadow-hover);
}

.bip-post-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--bip-sand);
}

.bip-post-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bip-post-card__cat {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bip-orange);
    margin-bottom: 10px;
}

.bip-post-card__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--bip-charcoal);
}

.bip-post-card__excerpt {
    font-size: 15px;
    color: #777;
    flex: 1;
    margin-bottom: 16px;
}

.bip-post-card__link {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bip-orange);
    text-decoration: none;
    transition: color var(--bip-transition);
}

.bip-post-card__link:hover {
    color: var(--bip-red);
}

.bip-guides__empty {
    text-align: center;
    padding: 60px 24px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ==========================================================================
   SECTION 6 — Footer
   ========================================================================== */
.bip-footer {
    background: var(--bip-charcoal);
    color: #AAAAAA;
    padding: 64px 0 0;
}

.bip-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bip-footer__brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--bip-white);
    margin-bottom: 12px;
}

.bip-footer__brand-tagline {
    font-size: 15px;
    color: #999;
    margin-bottom: 20px;
    max-width: 280px;
}

.bip-footer__community {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bip-orange);
    font-weight: 500;
}

.bip-footer__community svg {
    width: 16px;
    height: 16px;
}

.bip-footer__heading {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bip-white);
    margin-bottom: 20px;
}

.bip-footer__links {
    list-style: none;
    padding: 0;
}

.bip-footer__links li {
    margin-bottom: 10px;
}

.bip-footer__links a {
    color: #999;
    text-decoration: none;
    font-size: 15px;
    transition: color var(--bip-transition);
}

.bip-footer__links a:hover {
    color: var(--bip-white);
}

.bip-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 14px;
    color: #666;
}

.bip-footer__community {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bip-orange);
    font-weight: 500;
}

.bip-footer__community svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .bip-hero__title {
        font-size: 44px;
    }

    .bip-section-title {
        font-size: 34px;
    }

    .bip-voting__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bip-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bip-tiers {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .bip-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bip-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bip-section {
        padding: 56px 0;
    }

    .bip-hero {
        min-height: auto;
        padding: 100px 0 140px;
    }

    .bip-hero__title {
        font-size: 34px;
    }

    .bip-hero__subtitle {
        font-size: 17px;
    }

    .bip-section-title {
        font-size: 28px;
    }

    .bip-section-subtitle {
        font-size: 16px;
    }

    /* Stack search form */
    .bip-search {
        flex-direction: column;
        border-radius: var(--bip-radius);
    }

    .bip-search__input {
        padding: 16px 20px;
    }

    .bip-search__select {
        border-left: none;
        border-top: 1px solid #E8E0D5;
        padding: 16px 20px;
    }

    .bip-search__btn {
        border-radius: 0 0 var(--bip-radius) var(--bip-radius);
        padding: 16px;
        justify-content: center;
    }

    .bip-voting__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bip-vote-card {
        padding: 24px 16px;
    }

    .bip-vote-card__icon {
        font-size: 36px;
    }

    .bip-vote-card__name {
        font-size: 17px;
    }

    .bip-categories__grid {
        grid-template-columns: 1fr;
    }

    .bip-tiers {
        grid-template-columns: 1fr;
    }

    .bip-guides__grid {
        grid-template-columns: 1fr;
    }

    .bip-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bip-btn {
        width: 100%;
        max-width: 320px;
    }

    .bip-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bip-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .bip-hero__title {
        font-size: 28px;
    }

    .bip-voting__grid {
        grid-template-columns: 1fr;
    }
}
