/* ============================================================
   Vaastu Building Services — pages/gallery.css
   Styles unique to gallery.html. Shared chrome lives in base.css
   (loaded first); rules here override it where intended. */
   ============================================================ */

:root {
    --primary: #1a3c5e;
    --primary-dark: #0f2540;
    --primary-light: #2a5a8e;
    --accent: #b35900;
    --accent-dark: #8f4700;
    --accent-light: #f0b840;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --light-gray: #e8ecf0;
    --text-dark: #1a1a2e;
    --text-mid: #3d4a5c;
    --text-light: #5a6a7e;
    --shadow-sm: 0 2px 8px rgba(26,60,94,0.10);
    --shadow-md: 0 6px 24px rgba(26,60,94,0.14);
    --shadow-lg: 0 12px 48px rgba(26,60,94,0.18);
    --radius: 8px;
    --radius-lg: 14px;
  }

.nav-links a.active { color: var(--primary); background: var(--light-bg); }

.section-desc { font-size: 16px; color: var(--text-light); line-height: 1.8; max-width: 640px; }

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: auto; }

.page-hero-tag { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 4px; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; }

.page-hero h1 { font-size: 46px; font-weight: 800; color: var(--white); margin-bottom: 18px; line-height: 1.15; }

.page-hero p { font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.75; margin: 0 auto; }

.gallery-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
  }

.filter-btn {
    padding: 10px 26px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--light-gray);
    background: var(--white);
    color: var(--text-mid);
    transition: all 0.2s;
    letter-spacing: 0.3px;
  }

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.filter-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
  }

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,30,60,0.85) 0%, rgba(10,30,60,0.2) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.32s;
    display: flex;
    align-items: flex-end;
    padding: 20px 22px;
  }

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-content .gallery-title {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
  }

.gallery-cat-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

.zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-size: 18px;
  }

.gallery-item:hover .zoom-icon { opacity: 1; }

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    font-size: 15px;
  }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 30, 0.97);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

.lightbox.open { display: flex; }

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.lightbox-img {
    max-width: 88vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255,255,255,0.75);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: sans-serif;
    z-index: 10001;
  }

.lightbox-close:hover { color: var(--accent); }

.lightbox-info {
    margin-top: 22px;
    text-align: center;
  }

.lightbox-info .lb-title {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }

.lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 8px;
  }

.lb-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
  }

.lb-nav-btn:hover { background: var(--accent); border-color: var(--accent); }

.lb-prev { left: 20px; }

.lb-next { right: 20px; }

.cta-banner { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); padding: 72px 24px; text-align: center; position: relative; overflow: hidden; }

.cta-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: auto; }

.cta-banner h2 { font-size: 38px; font-weight: 800; color: var(--white); margin-bottom: 16px; }

.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.80); margin-bottom: 36px; line-height: 1.7; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-phone { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.3); border-radius: var(--radius); padding: 14px 24px; color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; transition: all 0.2s; }

.cta-phone:hover { background: rgba(255,255,255,0.20); }

.cta-phone svg { width: 20px; height: 20px; fill: var(--accent); }

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

@media (max-width: 768px) {
    .page-hero h1 { font-size: 32px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar-left { display: none; }
    .topbar-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    nav { position: relative; }
    .nav-mobile-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-md); padding: 16px; z-index: 999; gap: 4px; }
    .nav-links a { padding: 12px 16px; }
    .lb-nav-btn { width: 40px; height: 40px; font-size: 18px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
  }
