/* === PGBB Main Stylesheet === */

/* === Navbar (styles in header-navbar.php take precedence) === */

/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--pgbb-white);
    background-color: var(--pgbb-green);
}

.nav-cta {
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--pgbb-white);
    border-radius: 2px;
    transition: all var(--transition-base);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger active state */
.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
    display: none;
    background: var(--pgbb-purple-dark);
    padding: 1rem var(--container-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.is-open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile ul li a {
    display: block;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    min-height: 44px;
}

.nav-mobile ul li a:hover,
.nav-mobile ul li.current-menu-item a {
    background-color: var(--pgbb-green);
    color: var(--pgbb-white);
}

.nav-mobile .nav-cta-mobile {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--pgbb-purple) 0%, var(--pgbb-purple-dark) 50%, var(--pgbb-purple-bg) 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Scroll-driven video background */
.hero--scroll-video {
    padding: 6rem 0 8rem;
    min-height: 80vh;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(123, 45, 142, 0.7) 0%,
        rgba(90, 30, 110, 0.6) 50%,
        rgba(60, 20, 80, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 203, 113, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 77, 176, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 767px) {
    .hero-logo {
        height: 55px;
        margin-bottom: 1rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--pgbb-white);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero-title {
    color: var(--pgbb-white);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: var(--pgbb-green);
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* === Search/Filter Bar === */
.search-filter-bar {
    background: var(--pgbb-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.search-filter-bar .container {
    padding: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.filter-search {
    position: relative;
}

.filter-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pgbb-gray);
    pointer-events: none;
}

.filter-search-icon svg {
    width: 20px;
    height: 20px;
}

.filter-search input {
    padding-left: 2.75rem;
}

.filter-select {
    min-width: 180px;
}

/* === Listings Grid === */
.listings-section {
    padding: 3rem 0 4rem;
}

.listings-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listings-count {
    color: var(--pgbb-gray);
    font-size: 0.9375rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* === Listing Card === */
.listing-card {
    background: var(--pgbb-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--pgbb-gray-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) {
    .listing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }
}

.listing-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
}

.listing-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

@media (hover: hover) {
    .listing-card:hover .listing-card-image img {
        transform: scale(1.05);
    }
}

.listing-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.listing-card-industry {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.listing-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--pgbb-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-title a {
    color: inherit;
    text-decoration: none;
}

.listing-card-title a:hover {
    color: var(--pgbb-purple);
}

.listing-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--pgbb-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.listing-card-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--pgbb-gray);
}

.listing-card-excerpt {
    color: var(--pgbb-gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.listing-card-financials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pgbb-gray-lightest);
    margin-top: auto;
}

.financial-item label {
    display: block;
    font-size: 0.6875rem;
    color: var(--pgbb-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.financial-item .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--pgbb-purple);
}

.financial-item:first-child .value {
    color: var(--pgbb-green);
}

.listing-card-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--pgbb-gray-lightest);
    font-size: 0.8125rem;
    color: var(--pgbb-gray);
}

.listing-card-footer-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.listing-card-footer-item svg {
    width: 14px;
    height: 14px;
}

/* === Footer === */
.site-footer {
    background: var(--pgbb-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--pgbb-green);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--pgbb-green);
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--pgbb-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--pgbb-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--pgbb-green);
}

/* === Page Styles === */
.page-header {
    background: linear-gradient(135deg, var(--pgbb-purple) 0%, var(--pgbb-purple-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    color: var(--pgbb-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
}

.page-header-logo {
    height: 56px;
    width: auto;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

@media (max-width: 767px) {
    .page-header-logo {
        height: 42px;
    }
}

.page-content {
    padding: 3rem 0 4rem;
}

/* === Team Grid === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--pgbb-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--pgbb-gray-lightest);
}

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

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

.team-card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.team-card-role {
    color: var(--pgbb-purple);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card-contact {
    font-size: 0.8125rem;
    color: var(--pgbb-gray);
}

.team-card-contact a {
    color: var(--pgbb-gray);
}

.team-card-contact a:hover {
    color: var(--pgbb-green);
}

/* === About Page === */
.about-mission {
    background: var(--pgbb-gray-lightest);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 3rem;
}

.about-mission blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgbb-purple);
    font-style: italic;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-value-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--pgbb-gray-light);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .about-value-card:hover {
        border-color: var(--pgbb-green);
        box-shadow: var(--shadow-md);
    }
}

.about-value-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--pgbb-purple);
}

.about-value-card p {
    font-size: 0.875rem;
    color: var(--pgbb-gray);
    margin-bottom: 0;
}

/* === Single Listing === */
.single-listing-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--pgbb-gray-lightest);
}

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

.single-listing-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pgbb-purple) 0%, var(--pgbb-purple-dark) 50%, var(--pgbb-green) 100%);
}

.single-listing-hero-placeholder img {
    width: auto;
    height: 60%;
    object-fit: contain;
    opacity: 0.3;
}

/* NDA Notice Card */
.pgbb-nda-notice {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #F5F3FF 0%, #ECFDF5 100%);
    border: 1px solid var(--pgbb-purple-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.pgbb-nda-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pgbb-purple);
    color: var(--pgbb-white);
    border-radius: var(--radius-md);
}

.pgbb-nda-notice-icon svg {
    stroke: var(--pgbb-white);
}

.pgbb-nda-notice-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--pgbb-purple-dark);
}

.pgbb-nda-notice-content p {
    font-size: 0.9375rem;
    color: var(--pgbb-gray);
    margin-bottom: 1rem;
}

.pgbb-nda-notice-content .btn {
    gap: 0.5rem;
}

/* Blurred gated content */
.pgbb-gated-preview {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.4;
    margin-top: 1rem;
}

.single-listing-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.listing-main h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--pgbb-gray);
}

.listing-meta-item svg {
    width: 16px;
    height: 16px;
}

.listing-financials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.financial-card {
    background: var(--pgbb-gray-lightest);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.financial-card label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pgbb-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.financial-card .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--pgbb-purple);
}

.financial-card:first-child .value {
    color: var(--pgbb-green);
}

.listing-highlights {
    margin: 2rem 0;
}

.listing-highlights h3 {
    margin-bottom: 1rem;
}

.listing-highlights ul {
    list-style: none;
    padding: 0;
}

.listing-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.listing-highlights li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--pgbb-green);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Sidebar */
.listing-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
}

.broker-card {
    background: var(--pgbb-white);
    border: 1px solid var(--pgbb-gray-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.broker-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pgbb-gray-lightest);
}

.broker-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.broker-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.broker-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--pgbb-green);
    flex-shrink: 0;
}

.broker-info-item a {
    color: var(--pgbb-dark);
}

.broker-info-item a:hover {
    color: var(--pgbb-green);
}

.broker-card .btn {
    width: 100%;
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--pgbb-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--pgbb-gray-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}

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

.blog-card-date {
    font-size: 0.75rem;
    color: var(--pgbb-gray);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.blog-card-title a {
    color: var(--pgbb-dark);
}

.blog-card-title a:hover {
    color: var(--pgbb-purple);
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--pgbb-gray);
    line-height: 1.5;
}

/* === Notices === */
.pgbb-notice {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.pgbb-notice-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.pgbb-notice-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* === Loading States === */
.skeleton {
    background: linear-gradient(90deg, var(--pgbb-gray-lightest) 25%, var(--pgbb-gray-light) 50%, var(--pgbb-gray-lightest) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === 404 Page === */
.page-404 {
    text-align: center;
    padding: 6rem 0;
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--pgbb-purple);
    margin-bottom: 1rem;
}

.page-404 p {
    font-size: 1.25rem;
    color: var(--pgbb-gray);
    margin-bottom: 2rem;
}
