/*
Theme Name: Bright Glass
Theme URI: https://brightglass.ca
Author: Bright Glass
Author URI: https://brightglass.ca
Description: Custom premium theme for Bright Glass — glass installation and home improvement services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: brightglass
*/

/* ─────────────────────────────────────────
   VARIABLES
───────────────────────────────────────── */
:root {
  --bg-black:    #0e0e0e;
  --bg-charcoal: #1c1c1c;
  --bg-dark:     #252525;
  --bg-mid:      #3a3a3a;
  --text-muted:  #6b6b6b;
  --text-light:  #b8b8b8;
  --cream:       #f5f2ed;
  --white:       #ffffff;
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dark:   #a07830;
  --bg-page:     #f8f6f2;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--bg-charcoal);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 246, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: all 0.4s ease;
}
.site-header.scrolled {
  height: 60px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 500;
  color: var(--bg-charcoal);
  letter-spacing: 2px;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav ul li { position: relative; }
.primary-nav ul li a,
.primary-nav ul li > span {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg-mid);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.primary-nav ul li a:hover,
.primary-nav ul li > span:hover { color: var(--gold); }
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-menu-parent > a { color: var(--gold); }

/* Nav CTA Button */
.primary-nav ul li.menu-cta > a {
  background: var(--gold);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 2px;
}
.primary-nav ul li.menu-cta > a:hover {
  background: var(--gold-dark);
}

/* Dropdown */
.primary-nav ul li ul {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  flex-direction: column;
  background: var(--white);
  min-width: 210px;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  gap: 0;
}
.primary-nav ul li:hover > ul {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.primary-nav ul li ul li a {
  font-size: 13px;
  padding: 10px 20px;
  letter-spacing: 0.5px;
  text-transform: none;
}
.primary-nav ul li ul li a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  padding-left: 26px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--bg-charcoal);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9998;
  padding: 90px 8% 40px;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block;
  font-size: 15px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg-mid);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mobile-section-label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 18px 0 6px;
  border-bottom: none;
  font-weight: 600;
}
.mobile-menu .mobile-sub {
  padding-left: 16px;
  font-size: 14px;
  letter-spacing: 1px;
}
.mobile-menu .mobile-cta {
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
}

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.site-main {
  padding-top: 72px;
  min-height: 60vh;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: 100px 8%; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--bg-charcoal); color: var(--white); }

.section-header { text-align: center; margin-bottom: 70px; }
.eyebrow {
  display: block;
  font-size: 10px; letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bg-charcoal);
  letter-spacing: -0.5px;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px; margin: 16px auto 0;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.5); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-primary,
a.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; border-radius: 1px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-primary:hover, a.btn-primary:hover { background: var(--gold-dark); color: var(--white); }

.btn-outline,
a.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 36px;
  font-size: 12px; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 1px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Icon + hover animation buttons */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-with-icon .bg-icon {
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
}
.btn-with-icon .btn-icon-arrow {
  transition: transform 0.25s ease;
}
.btn-with-icon:hover .btn-icon-arrow {
  transform: translateX(4px);
}
.btn-animated {
  position: relative;
  overflow: hidden;
}
.btn-animated:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.28);
}
.btn-outline.btn-animated:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-animated::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-animated:hover::after {
  left: 100%;
}

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────── */
.page-hero {
  background: var(--bg-charcoal);
  padding: 80px 8% 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 300px; height: 100%;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.06));
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: 10px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero-eyebrow::before {
  content: ''; display: block;
  width: 30px; height: 1px; background: var(--gold);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300; color: var(--white);
  line-height: 1.05; letter-spacing: -0.5px;
  max-width: 700px;
}
.page-hero p {
  font-size: 16px; color: rgba(255,255,255,0.55);
  line-height: 1.7; max-width: 560px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────
   CONTENT SPLIT
───────────────────────────────────────── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.content-split.reversed { direction: rtl; }
.content-split.reversed > * { direction: ltr; }
.content-img {
  background: var(--bg-mid);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.content-img img { width: 100%; height: 100%; object-fit: cover; }
.content-img::after {
  content: '';
  position: absolute; bottom: -2px; right: -2px;
  width: 60px; height: 60px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
}
.content-body h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300; color: var(--bg-charcoal);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.content-body p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 16px;
}
.content-body ul { margin: 20px 0; }
.content-body ul li {
  font-size: 14px; color: var(--bg-mid);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; gap: 12px;
}
.content-body ul li::before {
  content: ''; width: 20px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TABS
───────────────────────────────────────── */
.bg-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 60px; overflow-x: auto;
}
.bg-tab {
  padding: 14px 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-body);
}
.bg-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.bg-tab-content { display: none; }
.bg-tab-content.active { display: block; }

/* ─────────────────────────────────────────
   SERVICE / PRODUCT CARDS
───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 48px 36px;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none; display: block;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.4s ease;
}
.service-card:hover::after { width: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--bg-charcoal); margin-bottom: 10px; letter-spacing: 0.5px;
}
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.service-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.product-img {
  background: var(--bg-mid);
  height: 220px;
  position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--white);
  font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 10px;
}
.product-info { padding: 24px; }
.product-info h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  color: var(--bg-charcoal); margin-bottom: 8px;
}
.product-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─────────────────────────────────────────
   WHY CHOOSE US / FEATURES
───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.feature { text-align: center; padding: 16px; }
.feature-num {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 300;
  color: rgba(201,168,76,0.15); line-height: 1; margin-bottom: -8px;
}
.feature h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--bg-charcoal); margin-bottom: 12px;
}
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─────────────────────────────────────────
   REVIEWS
───────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 36px;
}
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }
.review-card blockquote {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6; margin-bottom: 24px; font-style: italic;
}
.reviewer { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.google-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 16px; font-size: 11px;
  letter-spacing: 1px; color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

/* ─────────────────────────────────────────
   GALLERY
───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid--preview { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-mid);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
/* Legacy size modifiers neutralised — uniform tiles only */
.gallery-item.tall,
.gallery-item.wide { grid-row: auto; grid-column: auto; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.78) 0%, rgba(14,14,14,0.15) 55%, rgba(14,14,14,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay__zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-6px);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-overlay__zoom { transform: translateY(0); }
.gallery-label {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--white);
  transform: translateY(6px);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-label { transform: translateY(0); }

/* Gallery filter tabs — centered pills for the gallery page */
.bg-tabs.bg-tabs--gallery {
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: none;
  gap: 8px;
  margin-bottom: 44px;
}
.bg-tabs--gallery .bg-tab {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  padding: 10px 22px;
}
.bg-tabs--gallery .bg-tab.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Lightbox */
.bg-lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,8,0.95);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.bg-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bg-lightbox__img {
  max-width: 88vw; max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.bg-lightbox__caption {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.bg-lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.bg-lightbox__btn:hover { background: var(--gold); border-color: var(--gold); }
.bg-lightbox__close { top: 24px; right: 28px; }
.bg-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.bg-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .bg-lightbox__prev { left: 12px; }
  .bg-lightbox__next { right: 12px; }
  .bg-lightbox__btn { width: 42px; height: 42px; }
}

/* Gallery load more */
.bg-gallery-load-more {
  text-align: center;
  margin-top: 48px;
}
.bg-gallery-load-more__count {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ─────────────────────────────────────────
   VALUES (About page)
───────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px; margin-top: 48px;
}
.value-item {
  padding: 30px 24px; background: var(--white);
  border-top: 2px solid var(--gold);
}
.value-item h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  color: var(--bg-charcoal); margin-bottom: 10px;
}
.value-item p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ─────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 300;
  color: var(--bg-charcoal); margin-bottom: 20px; line-height: 1.15;
}
.contact-info p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.contact-details { margin-top: 32px; }
.contact-details li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px; color: var(--bg-mid);
}
.cd-label {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px; display: block;
}
.wpcf7-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 13px 16px;
  font-size: 14px; color: var(--bg-charcoal);
  outline: none; border-radius: 0;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--gold); }
.form-group textarea, .wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form input[type="submit"] {
  background: var(--gold); color: var(--white);
  padding: 15px 40px; border: none;
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
  width: 100%; border-radius: 1px;
}
.wpcf7-form input[type="submit"]:hover { background: var(--gold-dark); }

/* ─────────────────────────────────────────
   LOCATIONS
───────────────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 48px;
}
.location-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 28px; position: relative;
  transition: all 0.25s; cursor: default;
}
.location-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--gold);
  transition: height 0.3s;
}
.location-card:hover::before { height: 100%; }
.location-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.location-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--bg-charcoal); margin-bottom: 8px;
}
.location-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.location-card .coords {
  margin-top: 14px; font-size: 11px; letter-spacing: 1px;
  color: var(--gold); font-family: var(--font-display);
}

/* ─────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg-charcoal);
  border-top: 1px solid rgba(201,168,76,0.2);
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-banner__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(14,14,14,0.88) 0%,
      rgba(14,14,14,0.62) 38%,
      rgba(14,14,14,0.35) 62%,
      rgba(14,14,14,0.18) 100%);
}
.cta-banner__glow {
  position: absolute;
  width: 480px; height: 480px;
  top: 50%; left: -120px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-banner__content {
  flex: 1 1 420px;
  max-width: 620px;
}
.cta-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.cta-banner__eyebrow-line {
  display: block;
  width: 36px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  flex-shrink: 0;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-banner__subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}
.cta-banner__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-banner__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 7px 14px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  background: rgba(201,168,76,0.06);
}
.cta-banner__trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.cta-banner__trust-icon .bg-icon {
  width: 14px !important;
  height: 14px !important;
}
.cta-banner__actions {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.cta-banner__btn {
  text-align: center;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 2.5px;
}
.cta-banner__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  background: #0000007d;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s ease;
  box-sizing: border-box;
}
.cta-banner__phone:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
  transform: translateY(-1px);
}
.cta-banner__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  flex-shrink: 0;
}
.cta-banner__phone-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-banner__phone-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.cta-banner__phone-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .cta-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 88px 6% 64px;
    gap: 36px;
  }
  .cta-banner__content {
    max-width: 100%;
    width: 100%;
  }
  .cta-banner__photo { object-position: center; }
  .cta-banner__overlay {
    background: linear-gradient(180deg,
      rgba(14,14,14,0.85) 0%,
      rgba(14,14,14,0.55) 55%,
      rgba(14,14,14,0.4) 100%);
  }
  .cta-banner__trust {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .cta-banner__trust li {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .cta-banner__actions {
    width: 100%;
    max-width: 100%;
  }
  .cta-banner__btn { width: 100%; }
  .cta-banner__phone {
    width: 100%;
    justify-content: center;
  }
  .cta-banner__phone-text {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .cta-banner__inner { padding: 80px 5% 56px; gap: 32px; }
  .cta-banner__eyebrow { margin-bottom: 16px; }
  .cta-banner__subtitle { margin-bottom: 24px; }
  .cta-banner__trust { gap: 8px; }
  .cta-banner__trust li { font-size: 9px; padding: 10px 14px; }
  .cta-banner__phone-num { font-size: 19px; }
  .cta-banner__actions { gap: 14px; }
}

/* Legacy selector — pages may still target .cta-banner h2 */
.cta-banner h2:not(.cta-banner__title) {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
  color: var(--white);
  max-width: 560px;
  line-height: 1.2;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--bg-black);
  color: rgba(255,255,255,0.5);
  padding: 80px 8% 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 300;
  color: var(--white); letter-spacing: 2px; margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  font-size: 13px; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; letter-spacing: 0.5px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   PRIVACY / POLICY
───────────────────────────────────────── */
.policy-content { max-width: 780px; margin: 0 auto; }
.policy-content h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--bg-charcoal); margin: 40px 0 12px;
}
.policy-content p,
.policy-content li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.policy-content ul { padding-left: 20px; list-style: disc; }
.policy-last-updated { font-size: 13px; color: var(--gold); letter-spacing: 1px; margin-bottom: 40px !important; }

/* ─────────────────────────────────────────
   ELEMENTOR OVERRIDES
───────────────────────────────────────── */
.elementor-section-wrap > .elementor-section:first-child { margin-top: 0; }
.elementor-widget-wrap > .elementor-widget:first-child { margin-top: 0; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .content-split.reversed { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid,
  .gallery-grid--preview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 70px 6%; }
  .page-hero { padding: 60px 6% 50px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery-grid,
  .gallery-grid--preview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════
   BLOG SYSTEM
   single.php · archive.php · sidebar.php
═════════════════════════════════════════ */

/* ── Reading Progress Bar ── */
.bg-reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 10000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Blog page-level layout grids ── */
.single-post .site-main { background: var(--white); }
.archive .site-main,
.blog .site-main,
.search .site-main { background: var(--bg-page); }

.bg-post-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 320px;
  gap: 44px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 60px 5% 80px;
  align-items: start;
}
.bg-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 5% 80px;
  align-items: start;
}
.bg-related-posts__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.bg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
/* TOC left rail */
.bg-toc-rail {
  position: sticky;
  top: 90px;
  align-self: start;
  min-width: 0;
}
@media (max-width: 1180px) {
  /* Drop the left TOC rail; sidebar stays on the right */
  .bg-post-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    max-width: 1200px;
  }
  .bg-toc-rail { display: none; }
}
@media (max-width: 1024px) {
  .bg-post-layout { grid-template-columns: 1fr; gap: 40px; }
  .bg-archive-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .bg-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bg-related-grid { grid-template-columns: 1fr; }
}

/* ── Breadcrumbs ── */
.bg-breadcrumbs-wrap {
  background: var(--bg-charcoal);
  padding: 0 5%;
}
.bg-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.bg-breadcrumbs a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.bg-breadcrumbs a:hover { color: var(--gold); }
.bg-breadcrumbs__sep {
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  margin: 0 2px;
}
.bg-breadcrumbs__current {
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ── Post Hero (single.php) ── */
.bg-post-hero {
  position: relative;
  background: var(--bg-charcoal);
  padding: 70px 5% 60px;
  overflow: hidden;
}
.bg-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,14,14,.90), rgba(28,28,28,.75));
}
.bg-post-hero__inner {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}
.bg-post-cat-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
  text-decoration: none;
  transition: background 0.2s;
}
.bg-post-cat-badge:hover { background: var(--gold-dark); }
.bg-post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.bg-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.bg-post-meta__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bg-post-meta__avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(201,168,76,0.4);
  object-fit: cover;
}
.bg-post-meta__name {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.bg-post-meta__name:hover { color: var(--gold); }
.bg-post-meta__sep { color: rgba(201,168,76,0.5); }
.bg-post-meta__date { color: rgba(255,255,255,0.55); }
.bg-post-meta__read { color: var(--gold); }
.bg-post-meta__views { color: rgba(255,255,255,0.4); }

/* ── Post Layout (article + sidebar) ── */
.bg-post-article {
  min-width: 0; /* prevent grid blowout */
}

/* ── Table of Contents ── */
.bg-post-toc {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 22px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.bg-post-toc::-webkit-scrollbar { width: 4px; }
.bg-post-toc::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.bg-post-toc__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-post-toc__nav ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc-counter;
}
.bg-post-toc__nav li {
  counter-increment: toc-counter;
  margin-bottom: 2px;
}
.bg-post-toc__nav li.toc-sub { padding-left: 16px; }
.bg-post-toc__nav a {
  display: block;
  font-size: 13px;
  color: var(--bg-mid);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.4;
}
.bg-post-toc__nav li.toc-sub a { font-size: 12px; color: var(--text-muted); }
.bg-post-toc__nav a:hover { color: var(--gold); padding-left: 4px; }
.bg-post-toc__nav a.active {
  color: var(--gold);
  font-weight: 500;
  padding-left: 4px;
}

/* ── Post Content (rich typography) ── */
.bg-post-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--bg-charcoal);
  font-family: var(--font-body);
}
/* Drop cap */
.bg-post-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 5.2em;
  line-height: 0.75;
  margin: 6px 10px 0 0;
  color: var(--gold);
  font-weight: 300;
}
.bg-post-content p { margin-bottom: 1.6em; }
.bg-post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--bg-charcoal);
  margin: 2.2em 0 0.6em;
  line-height: 1.2;
}
.bg-post-content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--bg-charcoal);
  margin: 1.8em 0 0.5em;
  line-height: 1.25;
}
.bg-post-content h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-charcoal);
  margin: 1.5em 0 0.5em;
}
/* Blockquote */
.bg-post-content blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.05);
  padding: 22px 28px;
  margin: 2em 0;
  border-radius: 0 4px 4px 0;
}
.bg-post-content blockquote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--bg-dark);
  margin: 0;
}
.bg-post-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
/* Lists */
.bg-post-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}
.bg-post-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.6em;
  color: var(--bg-charcoal);
}
.bg-post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.bg-post-content ol {
  padding-left: 24px;
  margin: 0 0 1.6em;
}
.bg-post-content ol li {
  margin-bottom: 0.6em;
  padding-left: 6px;
  color: var(--bg-charcoal);
}
.bg-post-content ol li::marker { color: var(--gold); }
/* Links */
.bg-post-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.2s;
}
.bg-post-content a:hover { border-color: var(--gold); }
/* Inline code */
.bg-post-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.87em;
  background: var(--bg-charcoal);
  color: var(--gold-light);
  padding: 2px 7px;
  border-radius: 3px;
}
/* Code blocks */
.bg-post-content pre {
  background: var(--bg-charcoal);
  border-radius: 6px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
  border-left: 3px solid var(--gold);
}
.bg-post-content pre code {
  background: none;
  color: rgba(255,255,255,0.85);
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}
/* Images & figures */
.bg-post-content img {
  border-radius: 4px;
  margin: 1.5em 0;
}
.bg-post-content figure { margin: 2em 0; }
.bg-post-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}
/* Tables */
.bg-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
}
.bg-post-content th {
  background: var(--bg-charcoal);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.bg-post-content td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: var(--bg-dark);
}
.bg-post-content tr:hover td { background: rgba(201,168,76,0.04); }

/* ── Tags Row ── */
.bg-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bg-post-tags__label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-right: 8px;
}
.bg-post-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-page);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--bg-mid);
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}
.bg-post-tag:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ── Social Share ── */
.bg-share-row {
  margin: 32px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.bg-share-row__label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.bg-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.bg-share-btn--facebook { background: rgba(24,119,242,0.08); color: #1877f2; border-color: rgba(24,119,242,0.2); }
.bg-share-btn--facebook:hover { background: #1877f2; color: var(--white); border-color: #1877f2; }
.bg-share-btn--twitter { background: rgba(0,0,0,0.06); color: #0f1419; border-color: rgba(0,0,0,0.15); }
.bg-share-btn--twitter:hover { background: #0f1419; color: var(--white); border-color: #0f1419; }
.bg-share-btn--linkedin { background: rgba(0,119,181,0.08); color: #0077b5; border-color: rgba(0,119,181,0.2); }
.bg-share-btn--linkedin:hover { background: #0077b5; color: var(--white); border-color: #0077b5; }
.bg-share-btn--whatsapp { background: rgba(37,211,102,0.08); color: #25d366; border-color: rgba(37,211,102,0.2); }
.bg-share-btn--whatsapp:hover { background: #25d366; color: var(--white); border-color: #25d366; }
.bg-share-btn--copy { background: var(--bg-page); color: var(--bg-mid); border-color: rgba(0,0,0,0.15); }
.bg-share-btn--copy:hover, .bg-share-btn--copy.copied { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── Author Box ── */
.bg-author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--cream);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
  padding: 32px 28px;
  margin: 40px 0;
}
.bg-author-box__img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(201,168,76,0.3);
}
.bg-author-box__role {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.bg-author-box__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--bg-charcoal);
  margin-bottom: 10px;
}
.bg-author-box__name a { color: inherit; text-decoration: none; }
.bg-author-box__name a:hover { color: var(--gold); }
.bg-author-box__bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.bg-author-box__link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.bg-author-box__link:hover { opacity: 0.75; }

/* ── Post Navigation ── */
.bg-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.bg-post-nav__prev { text-align: left; }
.bg-post-nav__next { text-align: right; }
.bg-post-nav__label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.bg-post-nav__card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  transition: all 0.25s;
}
.bg-post-nav__next .bg-post-nav__card { flex-direction: row-reverse; }
.bg-post-nav__card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.12);
  transform: translateY(-2px);
}
.bg-post-nav__thumb img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}
.bg-post-nav__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--bg-charcoal);
  line-height: 1.35;
  transition: color 0.2s;
}
.bg-post-nav__card:hover .bg-post-nav__title { color: var(--gold); }
@media (max-width: 600px) {
  .bg-post-nav { grid-template-columns: 1fr; }
  .bg-post-nav__next { text-align: left; }
  .bg-post-nav__next .bg-post-nav__card { flex-direction: row; }
}

/* ── Post Pages (multi-page) ── */
.bg-post-pages {
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.bg-post-page-link a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--bg-mid);
  border-radius: 2px;
  margin: 0 2px;
  text-decoration: none;
  transition: all 0.2s;
}
.bg-post-page-link a:hover { background: var(--gold); color: var(--white); }

/* ══════════════════════════════════════════
   POST CARD (archive grid + related posts)
══════════════════════════════════════════ */
.post-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.post-card::after {
  content: '';
  display: block;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}
.post-card:hover::after { background: var(--gold); }

.post-card__image-wrap {
  display: block;
  text-decoration: none;
}
.post-card__image {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-charcoal);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__image { transform: scale(1.03); }
.post-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}
.post-card__placeholder-icon {
  color: rgba(201,168,76,0.3);
  font-size: 40px;
}
.post-card__cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  z-index: 1;
}
.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 12px;
}
.post-card__title a {
  color: var(--bg-charcoal);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.post-card__author { color: var(--bg-mid); font-weight: 400; }
.post-card__readmore {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.post-card__readmore:hover { opacity: 0.7; }

/* ══════════════════════════════════════════
   ARCHIVE PAGE
══════════════════════════════════════════ */

/* Archive Hero */
.bg-archive-hero {
  background: var(--bg-charcoal);
  padding: 70px 5% 60px;
}
.bg-archive-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.bg-archive-hero__avatar {
  margin-bottom: 20px;
}
.bg-archive-hero__avatar img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(201,168,76,0.4);
  object-fit: cover;
}
.bg-archive-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 18px;
  letter-spacing: -0.5px;
}
.bg-archive-hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 600px;
}

/* Archive Filter Bar */
.bg-archive-filters {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 5%;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.bg-archive-filters.is-sticky {
  position: sticky;
  top: 72px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.bg-archive-filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.bg-archive-filters__inner::-webkit-scrollbar { display: none; }
.bg-archive-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--bg-mid);
  background: var(--bg-page);
  border: 1px solid rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.bg-archive-filter-btn:hover,
.bg-archive-filter-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.bg-archive-filter-count {
  font-size: 10px;
  background: rgba(255,255,255,0.25);
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 500;
}
.bg-archive-filter-btn:not(:hover):not(.active) .bg-archive-filter-count {
  background: rgba(0,0,0,0.08);
}

/* Archive main + posts grid */
.bg-archive-main { min-width: 0; }
.bg-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}
@media (max-width: 700px) {
  .bg-posts-grid { grid-template-columns: 1fr; }
}

/* Pagination */
.bg-pagination { margin-top: 20px; }
.bg-pagination .page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.bg-pagination .page-numbers li a,
.bg-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--bg-mid);
  font-size: 13px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}
.bg-pagination .page-numbers li a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.bg-pagination .page-numbers li span.current { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* No posts message */
.bg-no-posts {
  text-align: center;
  padding: 80px 20px;
}
.bg-no-posts__icon { font-size: 48px; color: rgba(201,168,76,0.3); margin-bottom: 24px; }
.bg-no-posts__title { font-family: var(--font-display); font-size: 32px; font-weight: 300; margin-bottom: 14px; }
.bg-no-posts__text { font-size: 15px; color: var(--text-muted); max-width: 400px; margin: 0 auto 28px; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.bg-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.bg-sidebar-widget {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 4px;
  padding: 24px;
}
.bg-sidebar-widget-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

/* Sidebar: Search */
.bg-sidebar-search__wrap {
  display: flex;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.bg-sidebar-search__input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  border: none;
  outline: none;
  background: var(--bg-page);
  color: var(--bg-charcoal);
}
.bg-sidebar-search__input::placeholder { color: var(--text-muted); }
.bg-sidebar-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  background: var(--gold);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.bg-sidebar-search__btn:hover { background: var(--gold-dark); }

/* Sidebar: Author */
.bg-sidebar-author__inner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.bg-sidebar-author__avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.3);
}
.bg-sidebar-author__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--bg-charcoal);
  margin-bottom: 6px;
}
.bg-sidebar-author__name a { color: inherit; text-decoration: none; }
.bg-sidebar-author__name a:hover { color: var(--gold); }
.bg-sidebar-author__bio {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bg-sidebar-author__all {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.bg-sidebar-author__all:hover { opacity: 0.7; }

/* Sidebar: Categories */
.bg-sidebar-cats {
  list-style: none;
  padding: 0; margin: 0;
}
.bg-sidebar-cats li {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bg-sidebar-cats li:last-child { border-bottom: none; }
.bg-sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--bg-mid);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.bg-sidebar-cats li a:hover,
.bg-sidebar-cats li.current a { color: var(--gold); padding-left: 6px; }
.bg-sidebar-cats__count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 8px;
  border-radius: 20px;
}
.bg-sidebar-cats li.current .bg-sidebar-cats__count { background: rgba(201,168,76,0.1); color: var(--gold); }

/* Sidebar: Recent Posts */
.bg-sidebar-recent {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bg-sidebar-recent-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bg-sidebar-recent-post__thumb {
  display: block;
  flex-shrink: 0;
}
.bg-sidebar-recent-post__thumb img {
  width: 70px; height: 55px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.bg-sidebar-recent-post__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bg-sidebar-recent-post__title {
  font-size: 14px;
  color: var(--bg-charcoal);
  text-decoration: none;
  line-height: 1.4;
  font-weight: 400;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-sidebar-recent-post__title:hover { color: var(--gold); }
.bg-sidebar-recent-post__date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Sidebar: Tags */
.bg-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-sidebar-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-page);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--bg-mid);
  border-radius: 2px;
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.bg-sidebar-tag:hover,
.bg-sidebar-tag.active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Sidebar: CTA */
.bg-sidebar-cta {
  background: var(--bg-charcoal) !important;
  border-color: transparent !important;
  border-top: 3px solid var(--gold) !important;
}
.bg-sidebar-cta__eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.bg-sidebar-cta__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}
.bg-sidebar-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 20px;
}
.bg-sidebar-cta__btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ── Responsive adjustments for blog ── */
@media (max-width: 900px) {
  .bg-sidebar { position: static; }
  .bg-post-toc { position: static; max-height: none; }
}
@media (max-width: 768px) {
  .bg-share-buttons { gap: 6px; }
  .bg-share-btn { padding: 8px 12px; font-size: 11px; }
  .bg-author-box { flex-direction: column; }
  .bg-post-nav { grid-template-columns: 1fr; }
  .bg-archive-filters.is-sticky { top: 60px; }
}
@media (max-width: 600px) {
  .bg-post-hero { padding: 50px 6% 44px; }
  .bg-post-content > p:first-of-type::first-letter { font-size: 3.8em; }
  .bg-share-btn span:not(.bg-share-btn svg) { display: none; }
}

/* ─────────────────────────────────────────
   ICONS
───────────────────────────────────────── */
.bg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Service card icon */
.service-card__icon {
    width: 52px; height: 52px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    margin-bottom: 22px;
    transition: all 0.3s;
}
.service-card:hover .service-card__icon {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Feature icon */
.feature-icon {
    width: 64px; height: 64px;
    background: rgba(201,168,76,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    margin: 0 auto 20px;
    border: 1px solid rgba(201,168,76,0.15);
}
.feature { text-align: center; }
.feature-num { display: none; } /* Hide old number, replaced by icon */

/* Contact icons */
.contact-icon {
    width: 38px; height: 38px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}
