/* =============================================
   The Village at Willow Grove - Village Brand Stylesheet
   Matches original site styling
   ============================================= */

/* Google Font */
@import url(https://fonts.googleapis.com/css?family=Arimo:400,700,700italic,400italic);

:root {
    /* Original Village Colors */
    --gold: rgba(205, 195, 124, 1);
    --gold-light: rgba(205, 195, 124, 0.6);
    --gold-bg: rgba(205, 196, 132, 0.2);
    --grey-light: rgba(215, 215, 215, 1);
    --grey-medium: rgba(196, 196, 196, 1);
    --grey-dark: rgba(122, 122, 122, 1);
    --blue-accent: rgba(151, 199, 223, 1);
    --blue-bg: rgba(151, 199, 223, 0.2);
    --red-accent: rgba(218, 147, 103, 1);
    --black: rgba(0, 0, 0, 1);
    --white: rgba(255, 255, 255, 1);
    --text-color: rgba(51, 51, 51, 0.8);
    --text-dark: rgba(51, 51, 51, 1);
    --text-muted: rgba(51, 51, 51, 0.5);
}

/* =============================================
   Typography & Base Styles
   ============================================= */

body {
    background-color: var(--white);
    color: var(--text-color);
    font-family: 'Arimo', sans-serif;
    font-size: 1em;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: rgba(0, 0, 0, 0.8);
    font-family: 'Arimo', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2.5em;
}

a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-dark);
}

hr {
    border-color: rgba(51, 51, 51, 0.1);
}

/* =============================================
   Navigation - Village Style
   ============================================= */

.navbar {
    background-color: var(--white);
    border-bottom: 2px solid var(--grey-dark);
    padding: 0;
}

.navbar-brand {
    padding: 10px 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--black);
    font-weight: 600;
    font-size: 1em;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-color);
    background-color: var(--grey-light);
}

.navbar-nav .nav-link.active {
    color: var(--text-color);
    background-color: var(--white);
}

.navbar-nav .nav-link.active:hover {
    background-color: var(--gold);
    color: white;
}

/* =============================================
   Hero Section - Village Style
   ============================================= */

.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    border-bottom: 2px solid var(--grey-dark);
    min-height: 400px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    width: 100%;
}

.hero-content {
    text-align: center;
    width: 100%;
    padding: 3rem 0;
}

.hero-title {
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* =============================================
   Page Header - Village Style
   ============================================= */

.page-header {
    background: url('../images/image-title.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    border-bottom: 2px solid var(--grey-dark);
    margin-bottom: 3rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

@media (min-width: 769px) {
    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header .lead {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header .lead,
.page-header .display-1,
.page-header .display-2,
.page-header .display-3,
.page-header .display-4,
.page-header .display-5,
.page-header .display-6 {
    color: var(--white) !important;
}

/* =============================================
   Breadcrumbs - Village Style
   ============================================= */

.breadcrumb {
    background: transparent;
    padding: 20px 0;
    margin: 0;
    color: var(--grey-dark);
}

.breadcrumb-item a {
    color: var(--grey-dark);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: rgba(30, 30, 30, 1);
}

/* =============================================
   Cards - Village Style
   ============================================= */

.card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-2px);
}

.merchant-card,
.property-card,
.news-card {
    background-color: var(--blue-bg);
    border: 1px solid rgba(124, 124, 124, 0.3);
    transition: all 0.2s ease;
}

.merchant-card:hover,
.property-card:hover,
.news-card:hover {
    background-color: rgba(151, 199, 223, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-img-top {
    border-radius: 0;
}

/* Merchant logo overlay on cards */
.merchant-card,
.property-card {
    position: relative;
}

.merchant-card .card-img-wrapper,
.property-card .card-img-wrapper {
    position: relative;
    overflow: visible;
}

.property-card .property-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.merchant-card .merchant-logo-overlay {
    position: absolute;
    bottom: -40px;
    left: 15px;
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--grey-light);
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-card .merchant-logo-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.merchant-card .card-body-with-logo {
    padding-top: 50px;
}

/* Merchant logo on detail page */
.merchant-logo {
    width: 120px;
    margin: -80px 0 10px 0;
    position: relative;
    background: var(--white);
    padding: 10px;
    border: 2px solid var(--grey-light);
}

/* =============================================
   Buttons - Village Style
   ============================================= */

.btn {
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    transition: all 0.2s ease;
    border: solid 1px;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary {
    color: var(--text-color);
    border-color: var(--text-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.btn-light {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-light:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    border-color: transparent;
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--text-color);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Gold accent button */
.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

/* =============================================
   Forms - Village Style
   ============================================= */

.form-control,
.form-select {
    border-radius: 0;
    padding: 0.625rem 1rem;
    border-color: var(--grey-medium);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(205, 195, 124, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* =============================================
   Badges - Village Style
   ============================================= */

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 0;
}

.badge.bg-primary {
    background-color: var(--gold) !important;
}

.badge.bg-success {
    background-color: var(--blue-accent) !important;
}

/* =============================================
   Article Content
   ============================================= */

.article-content,
.merchant-description,
.property-description {
    font-size: 1em;
    line-height: 1.8;
}

.article-content p,
.merchant-description p,
.property-description p {
    margin-bottom: 1.25rem;
}

.date {
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   Main Content Panel
   ============================================= */

.main-panel {
    padding: 0 30px;
    background-color: var(--white);
    min-height: 400px;
}

/* Background variations */
.back-gold {
    background-color: var(--gold-bg);
}

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

.back-grey {
    background-color: var(--grey-light);
}

/* =============================================
   Footer - Village Style
   ============================================= */

footer {
    padding: 2em 0;
    background-color: var(--black);
    color: rgba(255, 255, 255, 0.6);
}

footer h4, footer h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

footer p {
    font-size: 0.9em;
}

footer li {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: rgba(204, 204, 204, 1);
}

/* =============================================
   Utilities
   ============================================= */

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.text-primary {
    color: var(--gold) !important;
}

.bg-primary {
    background-color: var(--gold) !important;
}

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

.topspace {
    padding-top: 40px;
}

.bottomspace {
    margin-bottom: 40px;
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (min-width: 768px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 3.2em;
    }
    
    .navbar-brand img {
        height: 70px;
    }
    
    .merchant-logo {
        width: 120px;
        margin: -80px 0 10px 0;
    }
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 4em;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .navbar-nav .nav-link {
        padding: 0 15px;
    }
    
    .merchant-logo {
        margin: -100px 0 10px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* =============================================
   Animations
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.4s ease;
}

/* Staggered animation for card grids */
.row > .col-md-6:nth-child(1) .card,
.row > .col-lg-4:nth-child(1) .card { animation-delay: 0s; }
.row > .col-md-6:nth-child(2) .card,
.row > .col-lg-4:nth-child(2) .card { animation-delay: 0.1s; }
.row > .col-md-6:nth-child(3) .card,
.row > .col-lg-4:nth-child(3) .card { animation-delay: 0.2s; }
.row > .col-lg-4:nth-child(4) .card { animation-delay: 0.3s; }
.row > .col-lg-4:nth-child(5) .card { animation-delay: 0.4s; }
.row > .col-lg-4:nth-child(6) .card { animation-delay: 0.5s; }

/* =============================================
   News Card Images
   ============================================= */

.news-card-col {
    position: relative;
}

.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

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

/* Mobile: image stacks above content */
@media (max-width: 767.98px) {
    .news-card-col {
        position: relative;
        height: 200px;
    }
}

/* =============================================
   Content Area (Quill Editor Output)
   ============================================= */

.content-area img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.page-content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.content-area p {
    margin-bottom: 1rem;
}

/* Empty paragraphs from Quill (user pressing Enter) create visual line breaks */
.content-area p:empty {
    margin-bottom: 0.5rem;
}

.content-area h2,
.content-area h3,
.content-area h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-area h2:first-child,
.content-area h3:first-child,
.content-area h4:first-child {
    margin-top: 0;
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
}
