/*
Theme Name: 235 West Van Buren Custom Theme
Theme URI: https://235wvb.webfrenetics.com
Author: Web Frenetics
Author URI: https://webfrenetics.com
Description: Custom modern WordPress Block Theme for 235 West Van Buren Condominium Association.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: wvb-custom
*/

:root {
  --wvb-navy: #1B2B42;
  --wvb-blue: #23456D;
  --wvb-charcoal: #4d5256;
  --wvb-charcoal-hover: #33373a;
  --wvb-bubble-border: #7b736f;
  --wvb-accent: #0076a8;
  --wvb-accent-hover: #005a82;
  --wvb-light-bg: #F4F7FA;
  --wvb-border: #E2E8F0;
  --wvb-text: #2D3748;
  --wvb-muted: #718096;
}

body {
  color: var(--wvb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Header & Navigation */
.site-header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.site-branding-link {
  transition: opacity 0.2s ease;
}

.site-branding-link:hover {
  opacity: 0.9;
}

.site-header a {
  text-decoration: none;
}

/* Cards & Layout */
.wvb-card {
  background: #ffffff;
  border: 1px solid var(--wvb-border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wvb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Photo Gallery Grid */
.wvb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .wvb-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wvb-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.wvb-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #1B2B42;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wvb-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.wvb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.wvb-gallery-item:hover img {
  transform: scale(1.05);
}

.wvb-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 14px 16px;
  background: linear-gradient(to top, rgba(27, 43, 66, 0.92) 0%, rgba(27, 43, 66, 0.6) 70%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.wvb-gallery-overlay-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  line-height: 1.3;
}

.wvb-gallery-overlay-desc {
  font-size: 12px;
  color: #CBD5E0;
  margin: 4px 0 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.wvb-lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.wvb-lightbox.active {
  display: flex;
}

.wvb-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wvb-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wvb-lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.wvb-lightbox-subcaption {
  color: #A0AEC0;
  font-size: 13px;
  margin-top: 4px;
}

.wvb-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
  z-index: 100000;
}

.wvb-lightbox-close:hover {
  color: #0076a8;
}

.wvb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
  user-select: none;
  z-index: 100000;
}

.wvb-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.wvb-lightbox-prev {
  left: 25px;
}

.wvb-lightbox-next {
  right: 25px;
}

/* Wix-Matched Community Documents Section */
.wvb-comm-docs-section {
  position: relative;
  min-height: 640px;
  background-color: #f7f7f7;
  background-image: url('/wp-content/themes/wvb-custom/assets/images/community-documents-binders.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding: 50px 20px;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .wvb-comm-docs-section {
    background-size: cover;
    background-position: center;
    padding: 30px 15px;
  }
}

.wvb-speech-bubble-container {
  width: 100%;
  max-width: 580px;
  position: relative;
}

.wvb-speech-bubble {
  position: relative;
  background: #ffffff;
  border: 6px solid var(--wvb-bubble-border);
  border-radius: 0;
  padding: 28px 32px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wvb-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 45px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 24px 22px 0 0;
  border-color: var(--wvb-bubble-border) transparent transparent transparent;
}

.wvb-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 49px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 16px 0 0;
  border-color: #ffffff transparent transparent transparent;
}

.wvb-speech-bubble p {
  color: #333333;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px 0;
}

.wvb-speech-bubble p:last-child {
  margin-bottom: 0;
}

.wvb-button-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.wvb-action-btn {
  display: inline-block;
  background-color: var(--wvb-charcoal);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 11px 26px;
  border-radius: 0px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 210px;
  box-sizing: border-box;
}

.wvb-action-btn:hover {
  background-color: var(--wvb-charcoal-hover);
  color: #ffffff !important;
}

/* Footer */
.site-footer {
  background-color: var(--wvb-navy);
  color: #E2E8F0;
  padding: 40px 20px;
}

.site-footer a {
  color: #90CDF4;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
