/* ============================================
   WEXFORD ANCESTRY — BASE STYLES & VARIABLES
   ============================================ */

:root {
  --color-purple: #771369;
  --color-gold: #FFD700;
  --color-green: #179A64;
  --color-bg: #FAF8F4;
  --color-text: #2E2E2E;
}

/* Ensure full-height layout so footer sits at bottom */
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;  /* remove horizontal scroll entirely */
  overscroll-behavior: none;  /* prevent bounce on mobile */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* full viewport height */
  scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;          /* Chrome, Edge, Safari */
}

.mobile-nav, .menu-overlay, .mobile-menu {
  max-width: 100%;
  overflow-x: hidden;
}

/* Main grows to push footer down */
main {
  flex: 1;
}

/* --------------------------------------------
   GLOBAL RESET & TYPOGRAPHY
   -------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;   /* NEW – readable, upper/lowercase */
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 0.75rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--color-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* --------------------------------------------
   HEADER LAYOUT (TRANSPARENT + FIXED LOGO)
   -------------------------------------------- */
.site-header {
  background: transparent;      /* blends with site background */
  border: none;
  padding: 0.75rem 1.5rem;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Fixed logo pinned top-left */
.header-logo {
  position: absolute;
  top: 0;
  left: 0;
  max-height: 90px;             /* slightly larger than before */
  height: auto;
  width: auto;
  flex-shrink: 0;
  display: block;
  z-index: 20;
}

/* Header text and navigation */
.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 110px;           /* space so text doesn't overlap logo */
}

.header-content h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-purple);
}

.header-content nav {
  margin-top: 0.25rem;
}

.header-content nav a {
  color: var(--color-purple);
  font-weight: 500;
  margin: 0 0.25rem;
}

.header-content nav a:hover {
  color: var(--color-green);
}

/* Optional rule for hr */
.site-header hr {
  margin-top: 0.75rem;
  margin-bottom: 0;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .header-logo {
    position: static;           /* no overlap on mobile */
    max-height: 70px;
    margin-bottom: 0.5rem;
  }
  .header-content {
    margin-left: 0;
  }
}

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn-primary {
  background-color: var(--color-purple);
  border-color: var(--color-purple);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

.btn-outline-primary {
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.btn-outline-primary:hover {
  background-color: var(--color-purple);
  color: #fff;
}

/* --------------------------------------------
   UTILITIES
   -------------------------------------------- */
.text-gold { color: var(--color-gold) !important; }
.text-purple { color: var(--color-purple) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.bg-purple { background-color: var(--color-purple) !important; }

/*Article Search Bar*/
.input-group > * {
  height: 48px; /* consistent fixed height */
  border-radius: 0; /* align edges cleanly */
}

.input-group-text {
  background-color: #f8f9fa; /* subtle light background */
  border-right: none;
}

.form-control {
  border-left: none;
  border-right: none;
}

.btn-outline-primary {
  color: #660066; /* your purple */
  border-color: #660066;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: #660066;
  color: #fff;
}


.mobile-footer-homepage-padding {
  height: 12px;
}