/*
Theme Name: Alsen Pride Lodge
Theme URI: https://alsenpride253.org
Description: Custom WordPress theme for Alsen Pride Lodge No. 253, a Prince Hall Masonic lodge in Alsen, Louisiana. Brand colors: Navy #0B1F3A, Gold #C9A227.
Author: Alsen Pride Lodge No. 253
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alsen-pride-lodge
*/

:root {
  --apl-navy: #0B1F3A;
  --apl-navy-dark: #071427;
  --apl-blue: #14335E;
  --apl-gold: #C9A227;
  --apl-gold-light: #E6C866;
  --apl-cream: #F7F4EA;
  --apl-ink: #1A1A1A;
  --apl-border: #E1DCC9;

  --navy: var(--apl-navy);
  --navy-dark: var(--apl-navy-dark);
  --gold: var(--apl-gold);
  --white: #FFFFFF;
  --gray: var(--apl-cream);
  --gray-border: var(--apl-border);
  --ink: var(--apl-ink);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --h1: 36px;
  --h2: 28px;
  --h3: 22px;
  --body: 16px;

  --container: 1180px;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(11, 31, 58, 0.12);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.text-center { text-align: center; }
.max-w-content { max-width: 720px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--apl-gold-light); border-color: var(--apl-gold-light); color: var(--navy-dark); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--white); }

.btn--secondary-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--secondary-light:hover { background: var(--white); color: var(--navy); }

.btn--block { display: block; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Legacy alias for content generated via apl_button() (Gutenberg block markup) */
.wp-block-button__link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-dark) !important;
  border: 2px solid var(--gold);
}
.wp-block-button__link:hover { background: var(--apl-gold-light); border-color: var(--apl-gold-light); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  display: block;
}
.brand__tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

.main-nav__list {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav__list li { position: relative; }
.main-nav__list a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav__list a:hover,
.main-nav__list a.is-active,
.main-nav__list li.current-menu-item > a,
.main-nav__list li.current_page_item > a,
.main-nav__list li.current-menu-parent > a,
.main-nav__list li.current-menu-ancestor > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.main-nav__list .btn { color: var(--navy-dark) !important; border-bottom: none !important; }

/* Submenus */
.main-nav__list ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px 0;
  z-index: 10;
}
.main-nav__list li:hover > ul.sub-menu,
.main-nav__list li:focus-within > ul.sub-menu {
  display: block;
}
.main-nav__list ul.sub-menu li { width: 100%; }
.main-nav__list ul.sub-menu a {
  display: block;
  padding: 8px 18px;
  border-bottom: none;
  white-space: nowrap;
}
.main-nav__list ul.sub-menu a:hover { background: var(--gray); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 800px; overflow-y: auto; }
  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .main-nav__list ul.sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); font-size: 44px; }
.hero p.lede { font-size: 19px; color: #D6DFEC; max-width: 640px; }
.hero .apl-motto { color: var(--apl-gold-light); font-style: italic; }

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header .eyebrow { color: var(--apl-gold-light); }
.page-header p { color: #D6DFEC; max-width: 640px; margin-bottom: 0; }

/* ---- Grid / Cards ---- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.card--info {
  border-top: 4px solid var(--gold);
}
.card--pillar {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--navy);
}
.card--pillar .btn { margin-top: auto; align-self: flex-start; }

.stat-block { text-align: center; }
.stat-block__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  color: var(--gold);
  display: block;
}
.stat-block__label {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Values / timeline list ---- */
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.value-item__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
}

.timeline-item {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item__year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
}

/* ---- Forms ---- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,58,0.12);
}
.form-note { font-size: 13px; color: #555; }

/* ---- Pathway cards (ways to get involved) ---- */
.pathway-card {
  text-align: center;
  padding: 32px 24px;
}
.pathway-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  font-size: 26px;
  color: var(--white);
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: #B9C6D9;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-grid a { color: #B9C6D9; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid li { margin-bottom: 10px; }

.footer-brand__logo { width: 64px; margin-bottom: 14px; }
.footer-brand p { color: #8FA0B8; font-size: 14px; }

.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #24405F;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); }
.social-row svg { width: 18px; height: 18px; fill: #B9C6D9; }
.social-row a:hover svg { fill: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid #1B3552;
  padding-top: 20px;
  font-size: 12px;
  color: #6E82A0;
  line-height: 1.7;
}
.footer-bottom a { color: #8FA0B8; }

/* ---- Article/page body content (from the_content()) ---- */
.prose ul,
.prose ol {
  list-style: revert;
  padding-left: 1.4em;
  margin: 0 0 16px;
}
.prose li { margin-bottom: 8px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose strong { color: var(--navy); }

.apl-placeholder-notice {
  border-left: 4px solid var(--gold);
  background: var(--gray);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
}

.apl-motto { font-style: italic; color: var(--gold); }

/* ---- Blog pagination ---- */
.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- wp_login_form() default markup ---- */
#loginform p { margin: 0 0 18px; }
#loginform label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  box-sizing: border-box;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,58,0.12);
}
#loginform .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
#loginform .login-submit input[type="submit"] {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
  cursor: pointer;
  width: 100%;
}
#loginform .login-submit input[type="submit"]:hover { background: var(--apl-gold-light); border-color: var(--apl-gold-light); }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--gray-border);
  border: none;
  margin: 48px 0;
}

/* ---- WordPress core alignment helpers ---- */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
