/* ============================================================
   HOMEWARD CONNECT — HIGH-CLASS REFINEMENT LAYER v2.8.0
   Realistic, professional, elevated editorial presentation.
   Loads last. Softens and elevates existing styles without
   breaking layout or plugin output.
   ============================================================ */

:root {
  /* Refined palette — warmer, more restrained gold, deeper ink */
  --hc-ink: #141311;
  --hc-charcoal: #1f1e1b;
  --hc-body: #4a4741;
  --hc-muted: #6b675f;
  --hc-gold: #a67c32;
  --hc-gold-deep: #7d5c24;
  --hc-gold-soft: #c9a86c;
  --hc-gold-pale: #f6f1e6;
  --hc-paper: #fbfaf7;
  --hc-cream: #f8f5ef;
  --hc-line: #e8e2d6;
  --hc-line-strong: #d9d0c0;
  --hc-white: #ffffff;
  --hc-shadow-sm: 0 2px 8px rgba(20, 18, 12, 0.04);
  --hc-shadow-md: 0 8px 28px rgba(20, 18, 12, 0.07);
  --hc-shadow-lg: 0 18px 48px rgba(20, 18, 12, 0.10);
  --hc-radius: 8px;
  --hc-radius-lg: 12px;
  --hc-transition: 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Global polish */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--hc-white) !important;
  color: var(--hc-body) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
}

body :where(h1, h2, h3, h4, h5, h6) {
  color: var(--hc-ink) !important;
  font-family: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

::selection {
  background: #e8d5a8;
  color: var(--hc-ink);
}

a {
  transition: color var(--hc-transition), background var(--hc-transition), border-color var(--hc-transition), transform var(--hc-transition), box-shadow var(--hc-transition);
}

/* ---------- HEADER ---------- */
.hc-main-header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--hc-line) !important;
  box-shadow: var(--hc-shadow-sm) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hc-header-inner {
  max-width: 1440px !important;
  min-height: 88px !important;
  padding: 12px 4.5% !important;
}

.hc-logo img {
  max-height: 72px !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.04));
}

.hc-main-nav a {
  font: 600 12.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.04em !important;
  color: #2c2a26 !important;
  padding: 10px 0 !important;
  border-bottom: 1.5px solid transparent !important;
  position: relative;
}

.hc-main-nav a:hover,
.hc-main-nav a.active {
  color: var(--hc-gold-deep) !important;
  border-color: var(--hc-gold) !important;
}

/* Member Login / Portal button — solid, refined, high-class */
.hc-main-header .hc-header-inner > a.hc-portal,
.hc-main-header a.hc-portal:link,
.hc-main-header a.hc-portal:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 128px !important;
  min-height: 40px !important;
  padding: 11px 20px !important;
  background: var(--hc-ink) !important;
  background-image: none !important;
  color: #f8f4ea !important;
  -webkit-text-fill-color: #f8f4ea !important;
  border: 1px solid var(--hc-ink) !important;
  border-radius: 4px !important;
  font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  transition: background var(--hc-transition), border-color var(--hc-transition), color var(--hc-transition), transform 0.18s ease !important;
}

.hc-main-header .hc-header-inner > a.hc-portal:hover,
.hc-main-header a.hc-portal:focus-visible {
  background: var(--hc-gold) !important;
  border-color: var(--hc-gold-deep) !important;
  color: var(--hc-ink) !important;
  -webkit-text-fill-color: var(--hc-ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 124, 50, 0.25) !important;
}

/* ---------- GOLD BUTTONS ---------- */
.hc-gold-button,
.hc-gold-button:link,
.hc-gold-button:visited,
.hc-hero-content .hc-gold-button,
.hc-section-head .hc-gold-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: var(--hc-ink) !important;
  background-image: none !important;
  color: #f8f4ea !important;
  border: 1px solid var(--hc-ink) !important;
  border-radius: 4px !important;
  font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  padding: 14px 26px !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
  transition: all var(--hc-transition) !important;
}

.hc-gold-button:hover,
.hc-gold-button:focus-visible {
  background: var(--hc-gold) !important;
  border-color: var(--hc-gold-deep) !important;
  color: var(--hc-ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(166, 124, 50, 0.22) !important;
}

.hc-gold-button.small {
  padding: 11px 18px !important;
  font-size: 11px !important;
}

.hc-gold-button span {
  color: inherit !important;
  font-size: 1.05em;
}

/* ---------- HOME HERO — elevated, editorial ---------- */
.hc-village-hero {
  min-height: 520px !important;
  padding: 48px clamp(24px, 5.5vw, 90px) !important;
  background-position: center 48% !important;
}

.hc-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(18, 16, 12, 0.32) 0%,
    rgba(18, 16, 12, 0.08) 45%,
    rgba(18, 16, 12, 0.28) 100%
  ) !important;
}

.hc-hero-content {
  width: min(460px, 46%) !important;
  padding: 32px 36px 34px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--hc-radius-lg) !important;
  box-shadow: var(--hc-shadow-lg) !important;
  backdrop-filter: blur(6px);
}

.hc-script {
  display: block !important;
  text-align: center !important;
  font: italic 28px/1.25 Georgia, "Times New Roman", serif !important;
  color: var(--hc-gold) !important;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.hc-hero-content h1 {
  font: 500 clamp(34px, 3.6vw, 52px)/1.05 Georgia, "Times New Roman", serif !important;
  color: var(--hc-ink) !important;
  margin: 6px 0 12px !important;
  text-align: center !important;
  letter-spacing: -0.03em !important;
}

.hc-hero-content > p {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: var(--hc-body) !important;
  text-align: center !important;
  margin: 0 0 4px !important;
}

.hc-hero-rule {
  height: 1.5px !important;
  width: 64px !important;
  background: var(--hc-gold) !important;
  margin: 18px auto 14px !important;
  opacity: 0.9;
}

.hc-hero-words {
  font: 600 11px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--hc-muted) !important;
  text-align: center !important;
  margin: 0 0 22px !important;
}

.hc-hero-words b {
  color: var(--hc-gold-deep);
  font-weight: 600;
  margin: 0 4px;
}

/* Hero door cards */
.hc-hero-doors {
  display: flex !important;
  gap: 12px !important;
  margin-top: 28px !important;
  flex-wrap: wrap;
}

.hc-hero-doors a {
  flex: 1 1 140px;
  min-width: 130px;
  background: rgba(20, 18, 14, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8f4ea !important;
  padding: 16px 14px !important;
  text-decoration: none !important;
  transition: all var(--hc-transition) !important;
  text-align: center;
}

.hc-hero-doors a:hover {
  background: rgba(20, 18, 14, 0.78) !important;
  border-color: rgba(201, 168, 108, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.hc-hero-doors a strong {
  display: block;
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  margin: 6px 0 2px;
  letter-spacing: 0.02em;
}

.hc-hero-doors a span {
  font-size: 18px;
  opacity: 0.85;
}

.hc-hero-caption {
  margin-top: 22px !important;
  font: italic 14px/1.5 Georgia, serif !important;
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
}

/* ---------- SERVICE STRIP ---------- */
.hc-service-strip {
  background: var(--hc-ink) !important;
  border-bottom: 1px solid #2a2824;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}

.hc-service-strip a {
  flex: 1 1 140px;
  max-width: 180px;
  padding: 22px 16px !important;
  text-align: center;
  color: #e8e0d0 !important;
  text-decoration: none !important;
  font: 600 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.06em !important;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background var(--hc-transition), color var(--hc-transition);
}

.hc-service-strip a:hover {
  background: #2a2722 !important;
  color: var(--hc-gold-soft) !important;
}

.hc-service-strip a span {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ---------- SECTIONS & CARDS ---------- */
.hc-section-head h2,
.hc-premium-intro h2,
.hc-connect-callout h2 {
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
}

.hc-section-head {
  margin-bottom: 32px !important;
}

.hc-post-card,
.hc-community-card,
.hcb592-dir-card,
.hw-profile-card {
  border: 1px solid var(--hc-line) !important;
  border-radius: var(--hc-radius) !important;
  background: var(--hc-white) !important;
  box-shadow: var(--hc-shadow-sm) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  overflow: hidden;
}

.hc-post-card:hover,
.hc-community-card:hover,
.hcb592-dir-card:hover,
.hw-profile-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--hc-shadow-md) !important;
  border-color: var(--hc-line-strong) !important;
}

/* Directory cards refinement */
.hcb592-dir-card-body h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}

.hcb592-dir-card-body > small {
  color: var(--hc-gold-deep) !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
}

/* ---------- INTERIOR BANNERS ---------- */
.hc-inner-page-banner {
  min-height: 280px !important;
  background-position: center 50% !important;
}

.hc-inner-banner-content {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: var(--hc-radius-lg) !important;
  box-shadow: var(--hc-shadow-md) !important;
  padding: 28px 34px !important;
}

.hc-inner-banner-kicker {
  letter-spacing: 0.18em !important;
  color: var(--hc-gold-deep) !important;
  font-size: 9px !important;
}

.hc-inner-banner-content h1 {
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
}

.hc-inner-banner-rule {
  background: var(--hc-gold) !important;
  width: 42px !important;
}

/* ---------- FOOTER ---------- */
.hc-footer-formal {
  background: #f9f7f2 !important;
  border-top: 1px solid var(--hc-line) !important;
}

.hc-footer-formal .hc-footer-column h2 {
  color: var(--hc-ink) !important;
  letter-spacing: 0.13em !important;
  font-weight: 600 !important;
}

.hc-footer-formal .hc-footer-column a:hover {
  color: var(--hc-gold-deep) !important;
}

.hc-footer-devotional p {
  font-style: italic !important;
  color: #2e2c28 !important;
}

.hc-footer-rule {
  height: 3px !important;
  background: var(--hc-ink) !important;
}

/* ---------- FOCUS & ACCESSIBILITY ---------- */
a:focus-visible,
button:focus-visible,
.hc-gold-button:focus-visible,
.hc-portal:focus-visible {
  outline: 2px solid var(--hc-gold) !important;
  outline-offset: 3px !important;
}

/* ---------- MOBILE REFINEMENTS ---------- */
@media (max-width: 900px) {
  .hc-village-hero {
    min-height: 480px !important;
    padding: 36px 22px !important;
  }
  .hc-hero-content {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto;
  }
  .hc-hero-doors {
    justify-content: center;
  }
  .hc-service-strip a {
    flex: 1 1 33%;
    max-width: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

@media (max-width: 640px) {
  .hc-header-inner {
    min-height: 72px !important;
    padding: 10px 4% !important;
  }
  .hc-logo img {
    max-height: 56px !important;
  }
  .hc-village-hero {
    min-height: 460px !important;
    padding: 28px 16px !important;
  }
  .hc-hero-content {
    padding: 24px 22px 26px !important;
  }
  .hc-script {
    font-size: 24px !important;
  }
  .hc-hero-content h1 {
    font-size: 32px !important;
  }
  .hc-inner-banner-content {
    padding: 20px 22px !important;
  }
  .hc-gold-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}

/* Subtle page entrance for main content */
.hc-home,
.hc-page,
main {
  animation: hc-fade-in 0.55s ease both;
}

@keyframes hc-fade-in {
  from { opacity: 0.85; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
