/*
Theme Name: Green Grove Lodge No. 107
Theme URI: https://greengrovelodge107.org
Author: Green Grove Lodge No. 107
Description: Custom WordPress theme for Green Grove Lodge No. 107, F&AM, Conway, Arkansas. Includes a homepage, lodge history, trestle board, officer message pages (From the East/West/South), a password-protected members roster, and a contact page.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: green-grove-lodge
*/

:root {
  --ggl-green: #14432a;
  --ggl-green-dark: #0d2e1c;
  --ggl-gold: #c9a227;
  --ggl-gold-light: #e2c46a;
  --ggl-cream: #eef3ec;
  --ggl-text: #1f2430;
  --ggl-border: #cddac9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ggl-text);
  background: var(--ggl-cream);
  line-height: 1.6;
}

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

.ggl-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.ggl-header {
  background: var(--ggl-green);
  color: #fff;
  border-bottom: 4px solid var(--ggl-gold);
}
.ggl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.ggl-emblem-side {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ggl-gold-light);
}
.ggl-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 16px;
  flex-wrap: wrap;
}
.ggl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.ggl-emblem { color: var(--ggl-gold-light); }
.ggl-brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.ggl-brand-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--ggl-gold-light);
}

.ggl-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ggl-gold);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.ggl-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ggl-gold-light);
  margin: 4px 0;
}

.ggl-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.ggl-menu li a {
  display: block;
  color: #f0ead6;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.95rem;
  border-radius: 3px;
}
.ggl-menu li a:hover,
.ggl-menu li a:focus {
  background: rgba(201, 162, 39, 0.2);
  color: var(--ggl-gold-light);
}

/* Hero */
.ggl-hero {
  background: linear-gradient(180deg, var(--ggl-green) 0%, var(--ggl-green-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.ggl-hero h1 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  color: var(--ggl-gold-light);
}
.ggl-hero-sub { font-size: 1.1rem; margin: 0 0 6px; }
.ggl-hero-meta { color: #cfe0d4; font-size: 0.95rem; }

/* Page content */
.ggl-page { padding: 48px 24px; }
.ggl-page h1 {
  color: var(--ggl-green);
  border-bottom: 3px solid var(--ggl-gold);
  padding-bottom: 10px;
  margin-top: 0;
}
.ggl-content h2 { color: var(--ggl-green); margin-top: 2em; }
.ggl-station-note { font-style: italic; color: #555; margin-top: -8px; }
.ggl-source-note { font-size: 0.85rem; color: #666; border-top: 1px dashed var(--ggl-border); padding-top: 12px; margin-top: 2em; }
.ggl-content img { max-width: 100%; height: auto; border-radius: 4px; }
.ggl-content figure { margin: 0; }

.ggl-timeline { padding-left: 1.2em; }
.ggl-timeline li { margin-bottom: 6px; }

.ggl-notice-box {
  background: #fff;
  border: 1px solid var(--ggl-border);
  border-left: 5px solid var(--ggl-gold);
  padding: 18px 22px;
  border-radius: 4px;
  margin-bottom: 32px;
}
.ggl-notice-box h2 { margin-top: 0; }

/* Card grid */
.ggl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.ggl-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ggl-border);
  border-top: 4px solid var(--ggl-green);
  border-radius: 4px;
  padding: 20px;
  text-decoration: none;
  color: var(--ggl-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ggl-card:hover {
  box-shadow: 0 6px 18px rgba(20, 67, 42, 0.18);
  transform: translateY(-2px);
  border-top-color: var(--ggl-gold);
}
.ggl-card h2 { margin: 0 0 8px; color: var(--ggl-green); font-size: 1.15rem; }
.ggl-card p { margin: 0; font-size: 0.92rem; color: #555; }

/* Forms */
.ggl-login-form, .ggl-contact-form form { max-width: 420px; }
.ggl-login-form p, .ggl-contact-form p { margin: 0 0 14px; }
.ggl-login-form label, .ggl-contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--ggl-green);
}
.ggl-login-form input,
.ggl-contact-form input,
.ggl-contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ggl-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.ggl-hp-field { position: absolute; left: -9999px; top: -9999px; }
.ggl-btn {
  background: var(--ggl-green);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.ggl-btn:hover { background: var(--ggl-gold); color: var(--ggl-green-dark); }

.ggl-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.ggl-notice-success { background: #e6f4ea; color: #1e5b34; border: 1px solid #b8e0c5; }
.ggl-notice-error { background: #fbe9e9; color: #7a1f1f; border: 1px solid #f0b8b8; }

.ggl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 24px;
}
.ggl-contact-info { background: #fff; border: 1px solid var(--ggl-border); border-radius: 4px; padding: 22px; align-self: start; }

/* Roster table */
.ggl-roster-table, table.widefat {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
}
.ggl-roster-table th, .ggl-roster-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ggl-border);
}
.ggl-roster-table th { background: var(--ggl-green); color: #fff; }
.ggl-logout-link { display: inline-block; margin-bottom: 12px; }

/* Footer */
.ggl-footer {
  background: var(--ggl-green-dark);
  color: #cfe0d4;
  margin-top: 48px;
}
.ggl-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 32px 24px;
  font-size: 0.9rem;
}
.ggl-footer a { color: var(--ggl-gold-light); }
.ggl-footer-copy { grid-column: 1 / -1; font-size: 0.78rem; color: #8fae9a; border-top: 1px solid #1f4a30; padding-top: 12px; }

@media (max-width: 780px) {
  .ggl-nav-toggle { display: inline-block; }
  .ggl-nav { flex-basis: 100%; display: none; }
  .ggl-nav.is-open { display: block; }
  .ggl-menu { flex-direction: column; }
  .ggl-contact-grid { grid-template-columns: 1fr; }
  .ggl-emblem-side { display: none; }
}
