/* ═══════════════════════════════════════════
   REUSABLE COMPONENT LIBRARY
═══════════════════════════════════════════ */

/* ── Page Hero Banner (Interior Pages) ── */
.interior-page-hero {
  background: var(--charcoal);
  border-bottom: 1px solid var(--rule-dark);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
  margin-top: 0; /* header is fixed */
}

.interior-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 60% 50%, rgba(201,168,76,0.05) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(201,168,76,0.02) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,0.02) 80px);
  pointer-events: none;
}

/* Corner accent marks */
.interior-page-hero::after {
  content: '';
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 60px;
  height: 60px;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-right: 1px solid rgba(201,168,76,0.2);
}

.interior-page-hero .blkg-container {
  position: relative;
  z-index: 1;
}

.interior-page-hero .eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.interior-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.interior-page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.interior-page-hero .page-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-gray);
  max-width: 540px;
  margin: 0;
}

/* ── Breadcrumb ── */
.blkg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.blkg-breadcrumb a {
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.3s;
}
.blkg-breadcrumb a:hover { color: var(--gold); }
.blkg-breadcrumb-sep {
  color: var(--rule-dark);
  font-size: 0.55rem;
}
.blkg-breadcrumb-current { color: var(--gold); }

/* ── Section Background Variants ── */
.bg-obsidian   { background: var(--obsidian); }
.bg-obsidian-2 { background: var(--obsidian-2); }
.bg-charcoal   { background: var(--charcoal); }
.bg-charcoal-2 { background: var(--charcoal-2); }
.bg-cream      { background: var(--cream); }

/* Light section heading overrides */
.bg-cream .blkg-section-header h2 { color: var(--obsidian); }
.bg-cream .blkg-section-header p  { color: var(--mid-gray); }
.bg-cream .blkg-section-header .eyebrow { color: var(--gold-dark); }
.bg-cream .entry-content h1,
.bg-cream .entry-content h2,
.bg-cream .entry-content h3 { color: var(--obsidian); }
.bg-cream .entry-content p  { color: var(--mid-gray); }

/* ── Cards ── */
.blkg-card {
  background: var(--obsidian-2);
  border: 1px solid var(--rule-dark);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-luxury);
}
.blkg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxury);
}
.blkg-card:hover { background: var(--charcoal); }
.blkg-card:hover::before { transform: scaleX(1); }

/* Light card variant */
.blkg-card--light {
  background: var(--cream);
  border-color: var(--cream-3);
}
.blkg-card--light::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxury);
}
.blkg-card--light:hover { background: var(--cream-2); }
.blkg-card--light:hover::before { display: none; }
.blkg-card--light:hover::after { transform: scaleX(1); }

/* ── Callout / Quote Block ── */
.blkg-callout {
  border-left: 2px solid var(--gold);
  padding: 1.75rem 2rem;
  background: rgba(201,168,76,0.04);
  margin: 2.5rem 0;
}
.blkg-callout p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin: 0;
}
.blkg-callout cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}

/* ── Testimonial Card ── */
.blkg-testimonial {
  background: var(--charcoal);
  border: 1px solid var(--rule-dark);
  padding: 2.5rem;
  position: relative;
}
.blkg-testimonial::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}
.blkg-testimonial-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}
.blkg-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.25rem;
}
.blkg-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.blkg-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blkg-testimonial-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.blkg-testimonial-title {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Stat / Number Display ── */
.blkg-stat {
  text-align: center;
  padding: 2rem 1.5rem;
}
.blkg-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.blkg-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ── Two-column content layout ── */
.blkg-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.blkg-two-col--reverse { direction: rtl; }
.blkg-two-col--reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .blkg-two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .blkg-two-col--reverse { direction: ltr; }
}

/* ── Image with decorative border ── */
.blkg-image-decorated {
  position: relative;
}
.blkg-image-decorated img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.blkg-image-decorated::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  border: 1px solid rgba(201,168,76,0.2);
  z-index: -1;
}

/* ── Divider ── */
.blkg-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.blkg-divider::before,
.blkg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}

/* ── FAQ Accordion Component ── */
.blkg-faq-list {
  display: flex;
  flex-direction: column;
  margin: 3rem 0;
}

.blkg-faq-item {
  border-bottom: 1px solid var(--rule-dark);
}
.blkg-faq-item:first-child { border-top: 1px solid var(--rule-dark); }

.blkg-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.35;
  transition: color 0.3s;
}
.blkg-faq-trigger:hover,
.blkg-faq-item.is-open .blkg-faq-trigger { color: var(--gold-light); }

.blkg-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.4s var(--ease-luxury);
  color: var(--gold);
}
.blkg-faq-icon svg { width: 12px; height: 12px; }
.blkg-faq-item.is-open .blkg-faq-icon {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.blkg-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-luxury);
}
.blkg-faq-item.is-open .blkg-faq-panel { max-height: 500px; }

.blkg-faq-answer {
  padding: 0 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--light-gray);
}

/* ── Notification / Alert ── */
.blkg-alert {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.06);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--light-gray);
  line-height: 1.65;
  margin: 1.5rem 0;
}
.blkg-alert strong { color: var(--cream); font-weight: 500; }

/* ── Process Steps ── */
.blkg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.blkg-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: var(--rule-dark);
}
.blkg-step {
  text-align: center;
  padding: 0 2rem;
  position: relative;
}
.blkg-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 auto 1.5rem;
  background: var(--obsidian);
  position: relative;
  z-index: 1;
  transition: background 0.35s, color 0.35s;
}
.blkg-step:hover .blkg-step-number {
  background: var(--gold);
  color: var(--obsidian);
}
.blkg-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.blkg-step-body {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--light-gray);
}

@media (max-width: 640px) {
  .blkg-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .blkg-steps::before { display: none; }
  .blkg-step { padding: 0 1rem; }
}

/* ── Sidebar ── */
.blkg-has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blkg-has-sidebar {
    grid-template-columns: 1fr;
  }
}

.blkg-sidebar {}

.sidebar-widget {
  margin-bottom: 3rem;
}
.sidebar-widget-title {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-dark);
}
.sidebar-widget p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--light-gray);
  margin-bottom: 0.75rem;
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar-widget ul li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--light-gray);
  padding: 0.55rem 0;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}
.sidebar-widget ul li a:hover {
  color: var(--gold-light);
  padding-left: 0.4rem;
}

/* ── WP Comments ── */
.blkg-comments {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule-dark);
}
.blkg-comments .comments-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2rem;
}
.blkg-comments .comment-list { list-style: none; padding: 0; }
.blkg-comments .comment-body {
  padding: 1.5rem;
  background: var(--charcoal);
  border-left: 2px solid var(--rule-dark);
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}
.blkg-comments .comment-body:hover { border-left-color: var(--gold); }
.blkg-comments .comment-author .fn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
}
.blkg-comments .comment-metadata {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--mid-gray);
  margin-bottom: 0.85rem;
}
.blkg-comments .comment-content p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--light-gray);
  line-height: 1.75;
  margin: 0;
}
.blkg-comments .comment-reply-link {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.blkg-comments .comment-form input,
.blkg-comments .comment-form textarea { margin-bottom: 1rem; }
.blkg-comments .comment-form .submit {
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.35s;
}
.blkg-comments .comment-form .submit:hover { background: var(--gold-light); }

/* ── Search form ── */
.blkg-search-form {
  display: flex;
  gap: 0;
}
.blkg-search-form input[type="search"] {
  flex: 1;
  border-right: none;
}
.blkg-search-form button {
  background: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.blkg-search-form button:hover { background: var(--gold-light); }
.blkg-search-form button svg { width: 16px; height: 16px; }
