/* ═══════════════════════════════════════════════════
   ALM CUSTOM HEADER STYLES
   Anne Louise Magazine — Ashe Pro Child Theme
   ═══════════════════════════════════════════════════ */

:root {
  --alm-page:  #f8f6f3;
  --alm-white: #ffffff;
  --alm-black: #0c0c0c;
  --alm-ink:   #1c1c1c;
  --alm-mid:   #6e6b68;
  --alm-faint: #c0bcb7;
  --alm-rule:  #e2ddd8;
  --alm-gold:  #b8976e;
}

/* ── GLOBAL: prevent horizontal scroll on all pages ── */
/* NOTE: overflow-x only on body, NOT html — html overflow breaks position:fixed (lightboxes etc) */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Fix LightGallery / any fixed lightbox broken by overflow ── */
.lg-outer,
.lg-backdrop,
.lg-container {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  z-index: 99999 !important;
}


/* ── Override Ashe Pro default header ── */
#masthead,
.site-header,
header.site-header {
  all: unset;
  display: block;
}

/* ── Announcement bar ── */
.alm-bar {
  background: var(--alm-black);
  text-align: center;
  padding: 8px 1rem;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a4846;
  width: 100%;
}
.alm-bar a {
  color: var(--alm-gold);
  border-bottom: 1px solid var(--alm-gold);
  padding-bottom: 1px;
  text-decoration: none;
}

/* ── Main sticky header ── */
.alm-header {
  background: var(--alm-page);
  border-bottom: 1px solid var(--alm-rule);
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  transition: box-shadow 0.3s ease;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
}
.alm-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

/* ── Utility row ── */
.alm-util {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9px 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--alm-rule);
  overflow: hidden;
  max-height: 42px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.alm-header.scrolled .alm-util {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.alm-util-group {
  display: flex;
  gap: 2rem;
}
.alm-util a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--alm-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.alm-util a:hover { color: var(--alm-ink); }

/* ── Logo / Masthead row ── */
.alm-masthead-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 3rem 14px;
  text-align: center;
  overflow: hidden;
  transition: padding 0.35s ease;
}
.alm-header.scrolled .alm-masthead-row {
  padding-top: 7px;
  padding-bottom: 5px;
}

/* Text masthead */
.alm-masthead-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--alm-black);
  line-height: 1;
  text-decoration: none;
  display: block;
  transition: font-size 0.35s ease;
}
.alm-header.scrolled .alm-masthead-text {
  font-size: clamp(20px, 2.8vw, 32px);
}

/* Tagline beneath logo */
.alm-masthead-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 8px;
  overflow: hidden;
  max-height: 24px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}
.alm-header.scrolled .alm-masthead-meta {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.alm-masthead-meta hr {
  width: 60px;
  border: none;
  border-top: 1px solid var(--alm-rule);
  flex-shrink: 0;
}
.alm-masthead-sub {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--alm-mid);
  font-weight: 300;
  white-space: nowrap;
}

/* ── Primary navigation ── */
.alm-nav-wrap {
  border-top: 1px solid var(--alm-rule);
  background: var(--alm-page);
}
.alm-nav-wrap .alm-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 0;
}

/* WordPress outputs ul.menu so we target that too */
.alm-nav-wrap ul.menu,
.alm-nav-wrap .alm-nav-inner ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.alm-nav-wrap ul.menu li,
.alm-nav-wrap .alm-nav-inner li {
  list-style: none;
}
.alm-nav-wrap ul.menu li a,
.alm-nav-wrap .alm-nav-inner li a,
.alm-nav-wrap a {
  display: inline-block;
  padding: 11px 16px;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--alm-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding 0.35s;
}
.alm-header.scrolled .alm-nav-wrap ul.menu li a,
.alm-header.scrolled .alm-nav-wrap .alm-nav-inner li a {
  padding-top: 8px;
  padding-bottom: 8px;
}
.alm-nav-wrap ul.menu li a:hover,
.alm-nav-wrap ul.menu li.current-menu-item > a,
.alm-nav-wrap .alm-nav-inner li a:hover {
  color: var(--alm-black);
  border-bottom-color: var(--alm-black);
}

/* Hide dropdown arrows and sub-menus from Ashe */
.alm-nav-wrap .sub-menu { display: none !important; }
.alm-nav-wrap .menu-item-has-children > a::after { display: none !important; }

/* ── Mobile ── */
@media (max-width: 1080px) {
  .alm-util { padding-left: 2rem; padding-right: 2rem; }
  .alm-masthead-row { padding-left: 2rem; padding-right: 2rem; }
  .alm-nav-wrap .alm-nav-inner,
  .alm-nav-wrap ul.menu { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 680px) {
  .alm-util-group:first-child { display: none; }
  .alm-nav-wrap ul.menu li a,
  .alm-nav-wrap .alm-nav-inner li a {
    padding: 9px 8px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

}

/* ═══════════════════════════════════════════════════
   FULL WIDTH + ASHE PRO STYLE OVERRIDES
   ═══════════════════════════════════════════════════ */

/* ── Hide sidebar ── */
#secondary,
.widget-area,
aside.widget-area,
.sidebar-container,
.ashe-sidebar {
  display: none !important;
}

/* ── Full width content area ── */
#primary,
#content,
.site-content,
.site-main,
.content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* ── Remove Ashe container constraints ── */
.container,
.ashe-container,
#page .container,
.site-content .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

/* ── Override Ashe Pro pink/coloured text on inner pages ── */
.entry-title a,
.entry-title,
.post-title,
.post-title a,
h1.entry-title,
h2.entry-title,
.archive-title,
.page-title {
  color: #1c1c1c !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  text-align: left !important;
}

/* ── Override Ashe centred category label ── */
.cat-links a,
.entry-categories a,
.post-categories a,
.entry-meta .cat-links a {
  color: #6e6b68 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* ── Override Ashe centred layout on archive pages ── */
.archive .site-main,
.category .site-main,
.search .site-main,
.blog .site-main {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem 3rem !important;
}

/* ── Clean up Ashe entry header centering ── */
.entry-header {
  text-align: left !important;
  padding: 0 !important;
}

/* ── Override Ashe Pro link colours globally ── */
a { color: #1c1c1c; }
a:hover { color: #b8976e; }

/* ── Tidy post/article layout on inner pages ── */
article.post,
article.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .archive .site-main,
  .category .site-main,
  .blog .site-main {
    padding: 1.5rem 1.25rem !important;
  }
  article.post,
  article.page {
    padding: 1.5rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════
   HIDE ASHE PRO FOOTER
   ═══════════════════════════════════════════════════ */
.site-info, .site-info a, .footer-credits,
.ashe-footer-credits, #colophon .site-info, .powered-by,
#colophon.site-footer { display: none !important; }

/* ═══════════════════════════════════════════════════
   ALM FOOTER
   ═══════════════════════════════════════════════════ */
.alm-footer {
  background: #0e0e0e;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
}

/* Top grid */
.alm-footer-top { border-bottom: 1px solid #1a1816; }
.alm-footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 48px 3rem 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* Brand */
.alm-footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #f0ece7; text-decoration: none;
  display: block; margin-bottom: 16px;
  transition: color .2s;
}
.alm-footer-logo:hover { color: #b8976e; }
.alm-footer-strapline {
  font-size: 12px; font-weight: 300;
  line-height: 1.85; color: #3a3835;
  margin-bottom: 24px; max-width: 260px;
}
.alm-footer-socials { display: flex; gap: 8px; }
.alm-footer-socials a {
  width: 32px; height: 32px;
  border: 1px solid #222;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500;
  color: #444; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.alm-footer-socials a:hover { border-color: #b8976e; color: #b8976e; }

/* Columns */
.alm-footer-col-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.1em;
  color: #f0ece7; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #1e1c1a;
}
.alm-footer-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.alm-footer-list li a {
  font-size: 11.5px; font-weight: 300;
  letter-spacing: 0.04em; color: #3a3835;
  text-decoration: none; transition: color .2s;
}
.alm-footer-list li a:hover { color: #b8976e; }

/* FEHQ line */
.alm-footer-fehq { border-bottom: 1px solid #161412; }
.alm-footer-fehq-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 18px 3rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.alm-footer-fehq-inner hr {
  flex: 1; border: none; border-top: 1px solid #1a1816;
}
.alm-footer-fehq-inner p {
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #2a2826;
  white-space: nowrap;
}
.alm-footer-fehq-inner a {
  color: #b8976e; border-bottom: 1px solid #b8976e;
  padding-bottom: 1px; text-decoration: none;
}

/* Bottom bar */
.alm-footer-bottom-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 16px 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.alm-footer-copy {
  font-size: 10px; letter-spacing: 0.12em; color: #262422;
}
.alm-footer-credit {
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #222;
}

/* ── FOOTER RESPONSIVE ── */
@media (max-width: 1080px) {
  .alm-footer-inner { padding-left: 2rem; padding-right: 2rem; }
  .alm-footer-fehq-inner { padding-left: 2rem; padding-right: 2rem; }
  .alm-footer-bottom-inner { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 860px) {
  .alm-footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 36px 2rem 32px;
  }
  .alm-footer-brand-col { grid-column: 1 / -1; }
  .alm-footer-strapline { max-width: 100%; }
}
@media (max-width: 560px) {
  .alm-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 1.5rem;
    gap: 28px;
  }
  .alm-footer-fehq-inner {
    padding: 16px 1.5rem;
    flex-direction: column; gap: 10px; text-align: center;
  }
  .alm-footer-fehq-inner p { white-space: normal; }
  .alm-footer-fehq-inner hr { width: 40px; flex: none; }
  .alm-footer-bottom-inner {
    padding: 14px 1.5rem;
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
}
