/*
Theme Name: Lonnie Irvin Daylight Lodge #1309
Theme URI: https://example.com/lonnie-irvin-lodge
Author: Lodge Webmaster
Author URI: https://example.com
Description: A traditional Masonic lodge theme emphasizing Brotherhood, Charity, and Tradition. Features WordPress Customizer integration for easy editing of lodge name, meeting dates, location, contact info, and event details — no coding required.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lidl-theme
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  /* Masonic Traditional Palette */
  --navy:        #0a1628;
  --navy-light:  #142442;
  --navy-mid:    #1c3460;
  --gold:        #c9a84c;
  --gold-light:  #d4b96a;
  --gold-dark:   #a8883a;
  --cream:       #f5f0e6;
  --cream-dark:  #e8e0d0;
  --white:       #ffffff;
  --text-dark:   #1a1a2e;
  --text-body:   #3a3a4a;
  --text-muted:  #6b6b7b;
  --accent-red:  #8b2e2e;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Lora', 'Georgia', serif;
  --font-ui:      'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding .custom-logo-link img {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.site-title a { color: var(--gold); }
.site-title a:hover { color: var(--gold-light); }

.site-description {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* Main Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.main-navigation a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--navy);
  background: var(--gold);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    border-bottom: 3px solid var(--gold);
  }

  .main-navigation.toggled ul { display: flex; }

  .main-navigation a {
    padding: 12px 16px;
    display: block;
  }

  .header-inner { flex-wrap: wrap; }
}

/* ============================================================
   HERO SECTION (Front Page)
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M40 10 L55 50 L25 50 Z" fill="none" stroke="%23c9a84c" stroke-width="0.5" opacity="0.08"/></svg>') repeat;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-lodge-number {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-meeting-info {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 20px 32px;
  border-radius: 8px;
  display: inline-block;
  line-height: 1.8;
}

.hero-meeting-info strong {
  color: var(--gold);
}

@media (max-width: 768px) {
  .hero-section { padding: 60px 16px; }
  .hero-title { font-size: 2rem; }
  .hero-motto { font-size: 1.1rem; }
}

/* ============================================================
   PILLARS SECTION (Brotherhood, Charity, Tradition)
   ============================================================ */
.pillars-section {
  padding: var(--section-pad) 24px;
  background: var(--white);
}

.pillars-section .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-heading .gold-rule {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.pillar-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
  padding: var(--section-pad) 24px;
  background: var(--cream);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.event-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition: box-shadow 0.3s;
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
}

.event-card-header {
  background: var(--navy);
  color: var(--gold);
  padding: 16px 24px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.event-card-body {
  padding: 24px;
}

.event-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.event-card-body .event-date {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.event-card-body .event-location {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.event-card-body p {
  font-size: 0.93rem;
  color: var(--text-body);
}

/* ============================================================
   ABOUT / HISTORY SECTION
   ============================================================ */
.about-section {
  padding: var(--section-pad) 24px;
  background: var(--white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   CONTACT / INFO BAR
   ============================================================ */
.contact-bar {
  background: var(--navy);
  color: var(--cream);
  padding: 60px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-block p,
.contact-block a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.8;
}

.contact-block a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.7;
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-header-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 60px 24px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.page-header-banner h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
}

.page-header-banner .page-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-top: 8px;
}

.page-content {
  padding: var(--section-pad) 24px;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-mid);
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.page-content ul, .page-content ol {
  margin: 0 0 20px 24px;
}

.page-content li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 32px auto 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  transition: all 0.3s;
  margin-top: 24px;
}

.btn-cta:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

/* ============================================================
   WIDGET AREAS / SIDEBAR
   ============================================================ */
.widget-area {
  padding: 40px 24px;
}

.widget {
  margin-bottom: 32px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

/* ============================================================
   BLOG / POST STYLES
   ============================================================ */
.post-entry {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid var(--cream-dark);
}

.post-entry h2 a {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.5rem;
}

.post-entry h2 a:hover { color: var(--gold-dark); }

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0 16px;
}

/* ============================================================
   CUSTOMIZER EDIT HIGHLIGHTS
   When viewed in the Customizer, editable fields glow subtly
   ============================================================ */
.customize-partial-refreshing {
  outline: 2px dashed var(--gold) !important;
  outline-offset: 4px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-navy { background: var(--navy); }
.bg-cream { background: var(--cream); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
