/* ============================================
   WEXFORD ANCESTRY — LAYOUT, NAV & HERO
   ============================================ */

/* --------------------------------------------
   NAVBAR
   -------------------------------------------- */
.navbar {
  background-color: var(--color-purple);
}

.navbar-brand img {
  height: 60px;
}

.navbar a.nav-link {
  color: #fff;
  font-weight: 500;
}

.navbar a.nav-link:hover {
  color: var(--color-gold);
}

/* ============================================
   HERO — FULL WIDTH, TOP 0 START 0
   ============================================ */
.hero {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;                         /* true viewport width */
  margin-left: calc(50% - 50vw);        /* escape parent centering */
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: none;
  padding: 0;
  border: none;
}

/* Background image */
.hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

/* Gradient overlay */
.hero::after {
  pointer-events: none; /* allow clicks through overlay */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(119, 19, 105, 0.55),
    rgba(0, 0, 0, 0.55)
  );
  z-index: 1;
}

/* Inner content */
.hero .container-fluid {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

/* Hero logo */
.hero-logo {
  max-width: 70px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

@media (min-width: 992px) {
  .hero-logo {
    max-width: 90px;
  }
}

/* Hero text */
.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #f8f8f8;
}

.hero p {
  color: #eaeaea;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hero a.btn {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

/* ============================================
   CORE LAYOUT RHYTHM — PAGE STRUCTURE
   ============================================ */
section:not(.hero),
header,
footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section:not(.hero) {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Optional section variants */
.section-narrow { padding: 1.5rem; }
.section-wide { padding: 4rem 2rem; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--color-purple);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
}

footer a {
  color: var(--color-gold);
}

footer a:hover {
  color: var(--color-green);
}

/* ============================================
   HOMEPAGE & GENERAL SECTIONS
   ============================================ */
section:not(.hero) {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Narrative sections stay left-aligned */
.about-snippet,
.history-teaser,
.articles {
  text-align: left;
}

/* Modular sections remain centered */
.services,
#testimonial-section {
  text-align: center;
}

/* Section headings unified */
section > h2,
section > h3,
section > h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ============================================
   ARCHIVES — IMAGE CONSISTENCY
   ============================================ */
.archives .article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archives article {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.archives article img {
  width: 100%;
  max-width: 800px;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto 1rem;
}

.archives article h3 {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: var(--color-purple);
}

.archives article p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ============================================
   HOME PAGE — ARTICLE IMAGE CONSISTENCY
   ============================================ */
.articles .article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.articles article {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Uniform article images, excluding hero-bg */
.articles .article-list > article > img:not(.hero-bg) {
  width: 100%;
  max-width: 800px;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto 1rem;
}

.articles .article-list > article > h3 {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: var(--color-purple);
}

.articles .article-list > article > p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ============================================
   HERO-BG EXEMPTION — ENSURE FREEDOM
   ============================================ */
.hero-bg {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}


/* ============================================
   HERO — FORCE TRUE FULL BLEED
   ============================================ */
.hero {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.hero .hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  opacity: 0.35;
  z-index: 0;
}


/* ==== HERO FIX: Restore Full Width, Remove Unwanted Padding ==== */
.hero {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.hero .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body > main > .hero:first-child {
  margin-top: 0 !important;
}


.hero::after {
  pointer-events: none !important;
}