/* ==========================================================================
   Wood Carpenter Interiors — Components Stylesheet
   Gallery, Contact, Services, About, Blog, Page-specific styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--color-walnut);
  overflow: hidden;
}
.page-hero .grain-overlay { opacity: 0.05; }
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.92) 0%, rgba(44,24,16,0.70) 100%);
}
.page-hero-content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 760px;
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(245,237,214,0.5);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xl);
}
.page-hero-breadcrumb a { color: rgba(245,237,214,0.5); transition: color var(--transition-fast); }
.page-hero-breadcrumb a:hover { color: var(--color-brass-pale); }
.page-hero-breadcrumb span { opacity: 0.4; }
.page-hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}
.page-hero-title em { font-style: italic; color: var(--color-brass-pale); }
.page-hero-desc {
  font-size: var(--text-md);
  color: rgba(245,237,214,0.70);
  line-height: 1.75;
  max-width: 580px;
}

/* --------------------------------------------------------------------------
   2. Gallery Page
   -------------------------------------------------------------------------- */

/* Filter Bar */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}
.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.gallery-filter-btn:hover {
  background: var(--color-cream);
  border-color: var(--color-walnut);
  color: var(--color-walnut);
}
.gallery-filter-btn.active {
  background: var(--color-walnut);
  border-color: var(--color-walnut);
  color: var(--color-cream);
}
.gallery-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(184,134,11,0.2);
  color: var(--color-brass);
  border-radius: var(--radius-full);
}
.gallery-filter-btn.active .gallery-filter-count {
  background: rgba(245,237,214,0.2);
  color: var(--color-brass-pale);
}

/* Masonry Grid */
.gallery-masonry {
  columns: 3;
  column-gap: var(--space-lg);
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-cream);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), opacity var(--transition-base);
}
.gallery-item.is-hidden {
  display: none;
}
.gallery-item.is-filtering {
  opacity: 0.3;
  pointer-events: none;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Gallery Overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.90) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brass-pale);
  margin-bottom: 4px;
}
.gallery-item-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.3;
}
.gallery-item-zoom {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250,247,242,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250,247,242,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10,5,2,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--space-xl) var(--space-xl);
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform var(--transition-slow);
  cursor: zoom-in;
}
.lightbox-overlay.is-open .lightbox-img { transform: scale(1); }
.lightbox-img.is-zoomed {
  cursor: zoom-out;
  transform: scale(1.6);
  transition: transform var(--transition-slow);
}

.lightbox-caption {
  margin-top: var(--space-xl);
  text-align: center;
  max-width: 600px;
}
.lightbox-caption-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: block;
  margin-bottom: var(--space-xs);
}
.lightbox-caption-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-cream);
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250,247,242,0.1);
  border: 1px solid rgba(250,247,242,0.2);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(250,247,242,0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(250,247,242,0.1);
  border: 1px solid rgba(250,247,242,0.2);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 1;
}
.lightbox-nav:hover { background: rgba(250,247,242,0.2); }
.lightbox-nav--prev { left: var(--space-xl); }
.lightbox-nav--next { right: var(--space-xl); }

.lightbox-counter {
  position: absolute;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(245,237,214,0.5);
  letter-spacing: 0.1em;
}

/* Gallery Load More */
.gallery-load-more {
  text-align: center;
  margin-top: var(--space-3xl);
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   3. Contact Page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info {}
.contact-info-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:first-child { border-top: 1px solid var(--color-border); }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brass);
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: block;
  margin-bottom: var(--space-xs);
}
.contact-info-value {
  font-size: var(--text-base);
  color: var(--color-walnut);
  font-weight: 500;
  line-height: 1.6;
}
.contact-info-value a {
  color: var(--color-walnut);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.contact-info-value a:hover { color: var(--color-brass); }

.contact-map {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 240px;
  background: var(--color-cream);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}
.contact-form-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: var(--space-sm);
}
.contact-form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-form .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A6358' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.contact-form-note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.contact-form-note svg { flex-shrink: 0; }

/* Honeypot */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* --------------------------------------------------------------------------
   4. Services Page
   -------------------------------------------------------------------------- */
.service-detail {
  padding-block: var(--space-4xl);
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .service-detail-grid {
  direction: rtl;
}
.service-detail:nth-child(even) .service-detail-grid > * {
  direction: ltr;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.service-detail-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-detail-media:hover img { transform: scale(1.04); }
.service-detail-badge {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  background: rgba(44,24,16,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--color-cream);
}
.service-detail-badge-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-brass-pale);
  display: block;
  line-height: 1;
}
.service-detail-badge-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.6);
}

.service-detail-content {}
.service-detail-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--color-brass);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-sm);
}
.service-detail-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: var(--space-lg);
}
.service-detail-desc {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}
.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.service-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
}
.service-feature-item::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-brass);
  flex-shrink: 0;
}

.service-price-range {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.service-price-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.service-price-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-walnut);
}

/* --------------------------------------------------------------------------
   5. About Page
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}
.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.team-card:hover .team-card-photo img { transform: scale(1.05); }
.team-card-body {
  padding: var(--space-xl);
}
.team-card-name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: 4px;
}
.team-card-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: block;
  margin-bottom: var(--space-md);
}
.team-card-bio {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.65;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-3xl);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 4px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-brass);
  border: 2px solid var(--color-offwhite);
  box-shadow: 0 0 0 2px var(--color-brass);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: block;
  margin-bottom: var(--space-sm);
}
.timeline-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: var(--space-sm);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}
.value-card {
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-slow);
}
.value-card:hover { transform: translateY(-4px); }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brass);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
}
.value-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: var(--space-md);
}
.value-desc {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* Awards */
.awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
  justify-content: center;
}
.award-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 160px;
}
.award-badge svg { color: var(--color-brass); }
.award-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-walnut);
}
.award-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   6. Blog / Journal Page
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.blog-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.blog-card-cat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brass);
  background: rgba(184,134,11,0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(184,134,11,0.2);
}
.blog-card-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-walnut);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card-title { color: var(--color-brass); }
.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.blog-card-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}
.blog-card-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.blog-card-author-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-walnut);
}
.blog-card-read-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* Blog Featured */
.blog-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}
.blog-featured-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  grid-column: span 1;
}
.blog-featured-card--main { grid-column: 1; }
.blog-featured-card--main .blog-card-thumb { aspect-ratio: 16/9; }
.blog-featured-card--main .blog-card-title { font-size: var(--text-2xl); }

/* Blog Sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}
.blog-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-xl)); }
.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}
.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.sidebar-cats { display: flex; flex-direction: column; gap: var(--space-sm); }
.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.sidebar-cat-link:hover { color: var(--color-brass); }
.sidebar-cat-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   7. Utility / Shared Components
   -------------------------------------------------------------------------- */

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--color-walnut);
  border-color: var(--color-walnut);
  color: var(--color-cream);
}
.page-btn--wide { width: auto; padding-inline: var(--space-lg); }

/* Toast notification */
.toast {
  position: fixed;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: var(--z-toast);
  background: var(--color-walnut);
  color: var(--color-cream);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
  max-width: 420px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-error); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge--brass {
  background: rgba(184,134,11,0.12);
  color: var(--color-brass);
  border: 1px solid rgba(184,134,11,0.25);
}
.badge--green {
  background: rgba(39,174,96,0.12);
  color: var(--color-success);
  border: 1px solid rgba(39,174,96,0.25);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-3xl);
}
.divider--ornate {
  position: relative;
  text-align: center;
  overflow: visible;
}
.divider--ornate::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-offwhite);
  color: var(--color-brass);
  padding: 0 var(--space-md);
  font-size: var(--text-xs);
}

/* Card Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-cream) 25%, var(--color-cream-dark) 50%, var(--color-cream) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
}

/* Number Counter */
.counter-wrapper {
  display: inline-flex;
  align-items: baseline;
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: var(--color-walnut);
  color: var(--color-cream);
  padding: var(--space-lg) var(--container-pad);
  border-top: 1px solid rgba(184,134,11,0.3);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-text {
  flex: 1;
  font-size: var(--text-sm);
  color: rgba(245,237,214,0.75);
  min-width: 280px;
}
.cookie-text a { color: var(--color-brass-pale); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-md); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   8. Responsive (Components)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gallery-masonry { columns: 2; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-featured { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { position: static; }
  .service-detail-grid { grid-template-columns: 1fr; direction: ltr !important; }
  .service-detail:nth-child(even) .service-detail-grid { direction: ltr; }
  .service-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gallery-masonry { columns: 1; }
  .gallery-filter-bar { justify-content: flex-start; overflow-x: auto; padding-bottom: var(--space-sm); flex-wrap: nowrap; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-nav { display: none; }
  .lightbox-img.is-zoomed { transform: scale(1.3); }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
}
