/*
Theme Name: Riverwalk Hub
Theme URI: https://riverwalkinnovation.com
Author: Antigravity
Author URI: https://riverwalkinnovation.com
Description: A custom WordPress theme for the Riverwalk Tenant Hub, featuring a clean, professional, and refined design.
Version: 2.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    /* Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-dark: #111827;
    --color-bg-accent-soft: #f0f4f8;

    --color-text-primary: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-light: #e5e7eb;
    --color-text-muted: #9ca3af;

    --color-brand-primary: #1e3a8a;
    /* Deep Royal/Slate Blue */
    --color-brand-secondary: #d4af37;
    /* Metallic Gold/Bronze for accents */
    --color-brand-dark: #0f172a;

    --color-success: #059669;
    --color-alert: #dc2626;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Adds that premium editorial feel */

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Effects */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    background-color: var(--color-bg-primary);
    /* overflow-x: hidden; - Removed to fix sticky positioning */
    /* Prevent horizontal scroll but allow sticky */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

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

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

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

.text-white {
    color: #fff;
}

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

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

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

.mt-2 {
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-download,
.btn-rsvp {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-brand-primary);
    color: #fff;
    border: 1px solid var(--color-brand-primary);
}

.btn-primary:hover {
    background-color: var(--color-brand-dark);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary-small {
    padding: 8px 16px;
    background-color: var(--color-brand-secondary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    background-color: #bfa030;
}

.btn-download {
    color: var(--color-brand-primary);
    border: 1px solid var(--color-brand-primary);
    background: transparent;
}

.btn-download:hover {
    background: var(--color-brand-primary);
    color: #fff;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    /* Widened to push logo to corner */
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-divider {
    font-size: 2.5rem;
    color: #e5e7eb;
    margin: 0 1.5rem;
    font-weight: 300;
}

.logo-secondary {
    height: 60px;
    /* Adjusted to match primary logo size */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--color-text-secondary);
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.dropdown:hover .dropbtn {
    color: var(--color-brand-primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    /* Align right */
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: var(--radius-sm);
    border: 1px solid #f3f4f6;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--color-text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--color-bg-accent-soft);
    color: var(--color-brand-primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Nested Dropdown/Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu-content {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: var(--radius-sm);
    border: 1px solid #f3f4f6;
    padding: 0.5rem 0;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

/* Ensure submenu link looks like parent */
.dropdown-submenu>a::after {
    content: " ▸";
    float: right;
    color: var(--color-text-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--color-brand-dark);
    color: #fff;
    
    /* Responsive Padding (gets smaller on small screens) */
    padding: 2vw 0; 
    padding-top: 5vw; 
    
    overflow: hidden;
    
    /* Strict Aspect Ratio (2560x743) */
    min-height: 29vw; 
    
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}
/* Mobile Fallback */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 29vw;
        padding-top: 5vw;
    }
}
/* Text Scaling */
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    /* Added strong shadow for readability */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-weight: 300;
    /* Added subtle shadow */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Quick Links Bar - REMOVED */

/* Quick Links Bar */
.quick-links-bar {
    background: var(--color-brand-primary);
    padding: 1rem 0;
    margin-top: -1px;
    /* Connect to hero */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-links-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link-item:hover {
    background: #fff;
    color: var(--color-brand-primary);
    transform: translateY(-2px);
}

.quick-link-item .icon {
    font-size: 1.1rem;
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 4rem 0;
    align-items: start;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* Spacing between sections in the main column */
}

.sidebar-column {
    position: sticky;
    top: 96px;
    /* Below header (~92px) + small gap */
    align-self: start;
    /* Critical for sticky in grid */
    height: fit-content;
    z-index: 10;
}

/* Sidebar Perks Card */
.sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.sidebar-header {
    background: var(--color-brand-secondary);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-align: center;
}

.sidebar-content {
    padding: 1.5rem;
}

.perk-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
}

.perk-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.perk-icon {
    font-size: 1.5rem;
}

/* Section Common */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Monthly Digest */
.digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.digest-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.digest-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--color-brand-secondary);
}

.digest-card.featured {
    grid-column: span 2;
    /* Make the first one wider on large screens */
    background: linear-gradient(to right, #fff, #f8fafc);
    border-left: 4px solid var(--color-brand-primary);
}

.digest-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-brand-secondary);
    margin-bottom: 0.75rem;
    display: block;
}

.digest-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.digest-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--color-brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    border: 1px solid #f3f4f6;
}

.event-date {
    background: var(--color-bg-accent-soft);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--color-brand-primary);
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.event-details .time {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.event-details .event-benefit {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-rsvp {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    padding: 6px 12px;
}

.btn-rsvp:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}

/* Directory - REMOVED */

/* Resource Library */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.resource-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.text-link {
    color: var(--color-brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.text-link:hover {
    text-decoration: underline;
    gap: 8px;
    transition: gap 0.2s;
}

/* Milestones/Perks styling moved to Sidebar */

/* Footer & Feedback */
.footer-section {
    background: var(--color-bg-dark);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: flex;
    /* Changed from grid to flex for specific "bottom right" alignment requests */
    justify-content: space-between;
    align-items: flex-end;
    /* Align items to the bottom */
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    font-size: 1.1rem;
    color: var(--color-brand-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #fff;
}

.feedback-widget {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    width: fit-content;
    max-width: 100%;
}

.feedback-widget p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.emoji-rating {
    display: flex;
    gap: 1rem;
}

.emoji-rating button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.emoji-rating button:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */

@media screen and (max-width: 900px) {

    /* Adjust Container Padding */
    .container {
        padding: 0 1.5rem;
    }

    /* Wrap Footer */
    .footer-grid {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }

    .footer-bottom .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-col {
        width: 100%;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .footer-col h5 {
        text-align: left !important;
    }

    /* Adjust Sidebar Layout (Tablet/Small Desktop) */
    .main-layout {
        gap: 2rem;
        grid-template-columns: 1fr 250px;
    }
}

@media screen and (max-width: 768px) {

    /* Navigation - Mobile Menu */
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f3f4f6;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    /* Adjust Dropdowns for Mobile */
    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
        padding-left: 0;
        font-size: 1.1rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        width: 100%;
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-content {
        /* JS toggles class active on click */
        display: block;
    }

    /* Make hover work as fallback or ensure accessible click */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Hero Section */
    .hero-section {
        min-height: 50vh;
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Main Layout - Stack Columns */
    .main-layout {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }

    .sidebar-column {
        position: static;
        width: 100%;
        margin-top: 2rem;
    }

    /* Digest Grid */
    .digest-grid {
        grid-template-columns: 1fr;
    }

    .digest-card.featured {
        grid-column: span 1;
    }

    /* Events Grid */
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        align-items: baseline;
        padding: 0.5rem;
    }

    .event-date .day {
        font-size: 1.25rem;
    }

    .event-date .month {
        font-size: 1rem;
        margin-top: 0;
    }

    /* Footer */
    .footer-col {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {

    /* Mobile Portrait Specifics */
    .container {
        padding: 0 1rem;
        /* Tighter padding for more width */
    }

    .hero-section {
        padding-top: 4rem;
        /* Reduce top whitespace */
        min-height: 40vh;
    }

    .hero-title {
        font-size: 1.75rem;
        /* Smaller title to prevent wrapping issues */
    }

    .logo img,
    .logo-secondary {
        height: 40px;
        /* Smaller logos */
    }

    .logo-divider {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
}