/*
 Theme Name:   Astra Child - Boardwalk HOA
 Theme URI:    https://boardwalkoceanfronttowerhoa.com
 Description:  Child theme for Boardwalk Oceanfront Tower HOA site. Adds SEO schema markup and style fixes.
 Author:       Meliora Properties Group
 Template:     astra
 Version:      1.0.7
 Text Domain:  astra-child
*/

/* ==========================================================================
   Footer - White text on dark background
   ========================================================================== */

footer.site-footer,
footer.site-footer .site-primary-footer-wrap,
footer.site-footer .site-below-footer-wrap,
footer.site-footer .ast-builder-grid-row-container,
footer.site-footer .ast-builder-grid-row-container-inner {
    background-color: #072A45 !important;
    background-image: none !important;
}

footer.site-footer,
footer.site-footer *,
.site-footer .ast-builder-layout-element,
.site-footer .ast-builder-layout-element *,
.ast-footer-overlay,
.ast-footer-overlay * {
    color: #ffffff;
}

footer.site-footer a:hover,
footer.site-footer a:focus {
    color: #BAE6FD !important;
}

/* Hide footer social icons — HOA has no social accounts */
footer.site-footer .ast-footer-social-wrap,
footer.site-footer .footer-social-inner-wrap,
footer.site-footer .ast-builder-social-element {
    display: none !important;
}

footer.site-footer a,
.site-footer .ast-builder-layout-element a {
    color: #e0e0e0;
    text-decoration: underline;
}

footer.site-footer a:hover,
footer.site-footer a:focus,
.site-footer .ast-builder-layout-element a:hover,
.site-footer .ast-builder-layout-element a:focus {
    color: #ffffff;
    text-decoration: none;
}

/* Footer headings */
footer.site-footer h1,
footer.site-footer h2,
footer.site-footer h3,
footer.site-footer h4,
footer.site-footer h5,
footer.site-footer h6 {
    color: #ffffff;
}

/* ==========================================================================
   HOA Announcements section + archive
   ========================================================================== */

.boardwalk-announcements {
    margin: 2.5em 0 3em;
}

.boardwalk-announcements__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 1.25em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e5e7eb;
}

.boardwalk-announcements__header h2 {
    margin: 0;
    font-size: 1.6em;
    color: #0f3a5b;
}

.boardwalk-announcements__view-all {
    font-weight: 600;
    text-decoration: none;
}

.boardwalk-announcements__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.boardwalk-announcements__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25em 1.4em;
    box-shadow: 0 1px 2px rgba(15, 58, 91, 0.04);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    display: flex;
    flex-direction: column;
}

.boardwalk-announcements__card:hover,
.boardwalk-announcements__card:focus-within {
    box-shadow: 0 6px 18px rgba(15, 58, 91, 0.12);
    transform: translateY(-2px);
}

.boardwalk-announcements__date {
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2a7fb8;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.boardwalk-announcements__title {
    font-size: 1.15em;
    margin: 0 0 0.5em;
    line-height: 1.3;
}

.boardwalk-announcements__title a {
    color: #0f3a5b;
    text-decoration: none;
}

.boardwalk-announcements__title a:hover,
.boardwalk-announcements__title a:focus {
    text-decoration: underline;
}

.boardwalk-announcements__excerpt {
    color: #4b5563;
    margin: 0 0 0.9em;
    flex: 1;
}

.boardwalk-announcements__more {
    align-self: flex-start;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95em;
}

.boardwalk-announcements--archive .boardwalk-announcements__grid {
    grid-template-columns: 1fr;
    gap: 1em;
}

.boardwalk-announcements--archive .boardwalk-announcements__card {
    padding: 1.25em 1.5em;
}

.boardwalk-announcements__empty {
    color: #6b7280;
    font-style: italic;
}

/* ==========================================================================
   Announcement Modal (home page first-visit popup)
   ========================================================================== */

#boardwalk-announcement-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(540px, 92vw);
    max-height: 92vh;
    width: auto;
    overflow: visible;
}

#boardwalk-announcement-modal::backdrop {
    background: rgba(7, 24, 38, 0.72);
    backdrop-filter: blur(2px);
}

.boardwalk-modal__inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.boardwalk-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f3a5b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.boardwalk-modal__close:hover,
.boardwalk-modal__close:focus {
    background: #fff;
    outline: 2px solid #2a7fb8;
    outline-offset: 2px;
}

.boardwalk-modal__image-wrap {
    display: block;
    background: #0f3a5b;
    overflow: hidden;
    flex: 0 1 auto;
    max-height: calc(92vh - 0px);
}

.boardwalk-modal__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
}

@media (max-width: 480px) {
    #boardwalk-announcement-modal {
        max-width: 96vw;
    }
    .boardwalk-modal__close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ==========================================================================
   Guest-friendly home page (v2026-06-09d)
   Scoped to .bw-home; uses Astra .alignfull behavior for full-bleed strips.
   ========================================================================== */

/* Force full-bleed for alignfull sections — Astra page-builder template
   wraps entry-content in a max-width:1200px shell, leaving white margins
   around the Owners block. !important needed to beat Astra specificity. */
.bw-home .alignfull{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
}
/* Eliminate residual gap between Owners strip and site footer */
.bw-home .bw-owner-strip{margin-bottom:0}
.bw-home > *:last-child{margin-bottom:0}
.single .entry-content > .bw-home,
.page .entry-content > .bw-home{margin-bottom:0;padding-bottom:0}

.bw-home{
    --bw-navy:#0C4A6E;
    --bw-navy-deep:#072A45;
    --bw-teal:#0369A1;
    --bw-ice:#F0F9FF;
    --bw-sky:#E0F2FE;
    --bw-ink:#1F2937;
    --bw-muted:#4B5563;
    --bw-line:#E5E7EB;
    --bw-ivory:#FBF9F4;
    --bw-brass:#B08754;
    --bw-serif:"Cormorant Garamond","Playfair Display",Georgia,"Times New Roman",serif;
    color:var(--bw-ink);
}
.bw-home *{box-sizing:border-box}
.bw-home img{max-width:100%;display:block;height:auto}

.bw-home .bw-wrap{max-width:1200px;margin:0 auto;padding-left:1.25em;padding-right:1.25em}

.bw-home .bw-section{padding:4em 0}
.bw-home h2.bw-h{
    text-align:center;color:var(--bw-navy);font-family:var(--bw-serif);
    font-weight:500;font-size:2.6em;letter-spacing:.005em;margin:0;
}
.bw-home .bw-eyebrow{
    text-align:center;color:var(--bw-brass);font-size:.78em;letter-spacing:.32em;
    text-transform:uppercase;font-weight:600;margin:0 0 .8em;
}
.bw-home .bw-rule{
    width:48px;height:1px;background:var(--bw-brass);margin:1em auto 2.5em;
}
.bw-home p.bw-sub{
    text-align:center;color:var(--bw-muted);max-width:680px;margin:0 auto 2.5em;
}

/* Hero */
.bw-home .bw-hero{
    position:relative;color:#fff;text-align:center;
    background:#0C4A6E;
    background-image:linear-gradient(180deg, rgba(7,42,69,.25) 0%, rgba(7,42,69,.65) 100%),
        url('https://i0.wp.com/boardwalkoceanfronttowerhoa.com/wp-content/uploads/2026/02/bw-ocean-view.jpg?w=1800&ssl=1');
    background-size:cover;background-position:center;
    padding:6em 1.25em 5em;
}
.bw-home .bw-hero h1{
    font-size:3em;line-height:1.1;margin:0 0 .25em;font-weight:700;color:#fff;
    text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.bw-home .bw-hero .bw-tag{
    font-size:1.25em;max-width:720px;margin:0 auto 2em;color:#E0F2FE;
    text-shadow:0 1px 8px rgba(0,0,0,.35);
}
.bw-home .bw-ctas{display:flex;gap:.75em;justify-content:center;flex-wrap:wrap}
.bw-home .bw-btn{
    display:inline-block;padding:.85em 1.6em;border-radius:8px;
    text-decoration:none;font-weight:600;font-size:1em;border:1px solid transparent;
    transition:transform .15s ease;
}
.bw-home .bw-btn:hover{transform:translateY(-1px)}
.bw-home .bw-btn-primary{background:#fff;color:var(--bw-navy)}
.bw-home .bw-btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.bw-home .bw-btn-ghost:hover{background:rgba(255,255,255,.1)}

/* Amenities */
.bw-home .bw-amenities{background:var(--bw-ice)}
.bw-home .bw-amenity-grid{
    display:grid;grid-template-columns:repeat(5, 1fr);gap:1.25em;
}
.bw-home .bw-amenity-card{
    background:#fff;border-radius:10px;overflow:hidden;
    box-shadow:0 1px 3px rgba(15,58,91,.08);
    display:flex;flex-direction:column;
}
.bw-home .bw-amenity-card .bw-img{height:170px;background-size:cover;background-position:center}
.bw-home .bw-amenity-card .bw-body{padding:1.1em 1.25em}
.bw-home .bw-amenity-card h3{margin:0 0 .35em;color:var(--bw-navy);font-size:1.05em}
.bw-home .bw-amenity-card p{margin:0;color:var(--bw-muted);font-size:.92em;line-height:1.5}

/* Gallery */
.bw-home .bw-gallery{background:#fff}
.bw-home .bw-gallery-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    grid-template-rows:200px 200px;gap:.6em;
}
.bw-home .bw-gallery-grid figure{margin:0;position:relative;overflow:hidden;border-radius:8px}
.bw-home .bw-gallery-grid figure img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.bw-home .bw-gallery-grid figure:hover img{transform:scale(1.04)}
.bw-home .bw-gallery-grid .bw-span2{grid-column:span 2;grid-row:span 2}
.bw-home .bw-gallery-grid figcaption{
    position:absolute;left:0;right:0;bottom:0;
    background:linear-gradient(0deg, rgba(7,42,69,.85) 0%, rgba(7,42,69,0) 100%);
    color:#fff;font-size:.82em;padding:1.5em .8em .6em;font-weight:600;
}

/* Know Before You Go */
.bw-home .bw-know{background:var(--bw-ivory)}
.bw-home .bw-kbyg-grid{
    display:grid;grid-template-columns:repeat(4, 1fr);gap:0;
    background:#fff;border:1px solid var(--bw-line);border-radius:2px;
    box-shadow:0 1px 2px rgba(15,58,91,.04);
}
.bw-home .bw-kbyg{padding:2.25em 1.75em;border-right:1px solid var(--bw-line);position:relative}
.bw-home .bw-kbyg:last-child{border-right:none}
.bw-home .bw-kbyg .bw-ico{
    width:32px;height:32px;color:var(--bw-navy);margin-bottom:1.2em;
    display:block;stroke:currentColor;fill:none;stroke-width:1.25;
}
.bw-home .bw-kbyg h3{
    margin:0 0 .9em;color:var(--bw-navy);font-family:var(--bw-serif);
    font-weight:500;font-size:1.45em;letter-spacing:.005em;
}
.bw-home .bw-kbyg .bw-meta{color:var(--bw-ink);font-size:.95em;line-height:1.7}
.bw-home .bw-kbyg .bw-row{display:flex;justify-content:space-between;gap:1em;padding:.3em 0}
.bw-home .bw-kbyg .bw-row + .bw-row{border-top:1px dotted var(--bw-line)}
.bw-home .bw-kbyg .bw-label{color:var(--bw-muted);font-size:.85em;text-transform:uppercase;letter-spacing:.08em}
.bw-home .bw-kbyg .bw-val{color:var(--bw-navy);font-weight:600;font-size:.95em}
.bw-home .bw-kbyg .bw-note{color:var(--bw-muted);font-size:.88em;line-height:1.6;margin:0}
.bw-home .bw-kbyg .bw-note strong{color:var(--bw-navy)}

/* Split — Where to Turn */
.bw-home .bw-split{background:#fff}
.bw-home .bw-split-grid{
    display:grid;grid-template-columns:1fr 1px 1fr;gap:0;align-items:stretch;
    border-top:1px solid var(--bw-line);border-bottom:1px solid var(--bw-line);
}
.bw-home .bw-split-grid > .bw-divider{background:var(--bw-line);width:1px}
.bw-home .bw-card-block{background:#fff;padding:3em 2.75em}
.bw-home .bw-card-block .bw-eyebrow-s{
    color:var(--bw-brass);font-size:.72em;letter-spacing:.32em;
    text-transform:uppercase;font-weight:600;margin:0 0 1em;
    display:flex;align-items:center;gap:.8em;
}
.bw-home .bw-card-block .bw-eyebrow-s::before{
    content:"";width:24px;height:1px;background:var(--bw-brass);display:inline-block;
}
.bw-home .bw-card-block h3{
    margin:0 0 .8em;color:var(--bw-navy);font-family:var(--bw-serif);
    font-weight:500;font-size:1.7em;letter-spacing:.005em;line-height:1.2;
}
.bw-home .bw-card-block .bw-lede{margin:0 0 1.5em;color:var(--bw-ink);font-size:1.02em;line-height:1.65}
.bw-home .bw-card-block .bw-points{margin:0;padding:0;list-style:none}
.bw-home .bw-card-block .bw-points li{
    padding:.9em 0;border-top:1px solid var(--bw-line);
    display:grid;grid-template-columns:90px 1fr;gap:1.25em;align-items:start;
}
.bw-home .bw-card-block .bw-points li .bw-k{
    color:var(--bw-navy);font-size:.72em;letter-spacing:.18em;text-transform:uppercase;
    font-weight:600;padding-top:.15em;
}
.bw-home .bw-card-block .bw-points li .bw-v{color:var(--bw-ink);font-size:.95em;line-height:1.6}
.bw-home .bw-card-block .bw-points li .bw-v strong{color:var(--bw-navy)}

/* Owner strip */
.bw-home .bw-owner-strip{
    background:var(--bw-navy-deep);color:#fff;text-align:center;padding:3em 1.25em;
}
.bw-home .bw-owner-strip h2{margin:0 0 .35em;color:#fff;font-size:1.5em}
.bw-home .bw-owner-strip p{margin:0 0 1.25em;color:#BAE6FD;max-width:560px;margin-left:auto;margin-right:auto}

/* Tighten announcements block when used inside .bw-home */
.bw-home .boardwalk-announcements{margin:0;padding:0}
.bw-home .boardwalk-announcements__header h2{
    font-family:var(--bw-serif);font-weight:500;font-size:2em;color:var(--bw-navy);
}

@media (max-width:900px){
    .bw-home .bw-hero h1{font-size:2.1em}
    .bw-home .bw-hero .bw-tag{font-size:1.05em}
    .bw-home .bw-amenity-grid{grid-template-columns:repeat(3,1fr)}
    .bw-home .bw-kbyg-grid{grid-template-columns:repeat(2,1fr)}
    .bw-home .bw-kbyg{border-right:none;border-bottom:1px solid var(--bw-line)}
    .bw-home .bw-kbyg:nth-child(odd){border-right:1px solid var(--bw-line)}
    .bw-home .bw-gallery-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:160px 160px 160px 160px}
    .bw-home .bw-gallery-grid .bw-span2{grid-column:span 2;grid-row:span 1}
    .bw-home .bw-split-grid{grid-template-columns:1fr}
    .bw-home .bw-split-grid > .bw-divider{display:none}
    .bw-home .bw-card-block{padding:2.25em 1.75em;border-bottom:1px solid var(--bw-line)}
    .bw-home h2.bw-h{font-size:2em}
}
@media (max-width:560px){
    .bw-home .bw-amenity-grid,
    .bw-home .bw-kbyg-grid{grid-template-columns:1fr}
    .bw-home .bw-section{padding:3em 0}
    .bw-home .bw-hero{padding:4em 1em 3em}
}

/* Announcement card thumbnail (event flyer from post content) */
.boardwalk-announcements__image-wrap{display:block;margin-bottom:12px;border-radius:8px;overflow:hidden}
.boardwalk-announcements__image{display:block;width:100%;height:180px;object-fit:cover;object-position:center}

/* ── Comment form — contemporary styling (added 2026-06-10) ─────────── */
.comment-respond, #respond {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 24px 28px;
    box-shadow: 0 1px 2px rgba(15, 58, 91, 0.04);
    margin-top: 28px;
}
#respond .comment-reply-title { color: #0f3a5b; font-size: 1.25rem; margin: 0 0 6px; }
.comment-form .comment-notes, .comment-form .logged-in-as { color: #6b7280; font-size: 0.9rem; margin-bottom: 16px; }
.comment-form label { display: block; color: #0f3a5b; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    color: #0f3a5b;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    -webkit-appearance: none;
    appearance: none;
}
.comment-form input::placeholder, .comment-form textarea::placeholder { color: #9ca3af; }
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2a7fb8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 127, 184, 0.15);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form p { margin-bottom: 16px; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form .submit, #respond input#submit {
    display: inline-block;
    background: #2a7fb8;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42, 127, 184, 0.25);
    transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.comment-form .submit:hover, #respond input#submit:hover {
    background: #0f3a5b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 58, 91, 0.22);
}
.comment-form .comment-form-cookies-consent input { width: auto; margin-right: 8px; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; color: #6b7280; }

.boardwalk-announcements--archive .boardwalk-announcements__image{height:300px}

/* Announcement archive — side-by-side media cards (image left, text right) */
.boardwalk-announcements--archive .boardwalk-announcements__card{display:flex;flex-direction:row;gap:18px;align-items:center}
.boardwalk-announcements--archive .boardwalk-announcements__image-wrap{flex:0 0 auto;width:200px;margin:0}
.boardwalk-announcements--archive .boardwalk-announcements__image{width:200px;height:150px;border-radius:8px;object-fit:cover;object-position:center}
.boardwalk-announcements--archive .boardwalk-announcements__body{flex:1 1 auto;min-width:0}
.boardwalk-announcements--archive .boardwalk-announcements__body>:first-child{margin-top:0}
@media (max-width:640px){
.boardwalk-announcements--archive .boardwalk-announcements__card{gap:14px}
.boardwalk-announcements--archive .boardwalk-announcements__image-wrap{width:110px}
.boardwalk-announcements--archive .boardwalk-announcements__image{width:110px;height:96px}
}
