/*
Theme Name: Santiam Aerie
Theme URI: https://santiameagles.com/
Author: Custom for North Santiam FOE #3384
Author URI:
Description: Modern community theme for North Santiam Fraternal Order of Eagles Aerie #3384. Inspired by the Grand Aerie (foe.com) layout with a local North Santiam River identity. Supports events, galleries, and officer listings. Motto: People Helping People.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: santiam-aerie
Tags: custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, blog, one-column, two-columns, right-sidebar
*/

:root {
  --color-navy: #0f2744;
  --color-navy-mid: #1a3a5c;
  --color-navy-soft: #e8eef5;
  --color-river: #1e6b7a;
  --color-river-light: #2a8a9c;
  --color-forest: #1a3c2a;
  --color-sage: #5a7a62;
  --color-gold: #c9a227;
  --color-gold-light: #e8d48b;
  --color-burgundy: #6b1e1e;
  --color-cream: #f7f4ee;
  --color-cream-dark: #ebe6db;
  --color-white: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6570;
  --color-border: #d8e0e8;
  --color-black: #0a0e14;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --container: 1140px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 4px 24px rgba(15, 39, 68, 0.08);
  --shadow-card: 0 8px 32px rgba(15, 39, 68, 0.12);
  --shadow-header: 0 1px 0 rgba(15, 39, 68, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-river); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-navy); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 0.55em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-top: 0; margin-bottom: 1.15em; }
ul, ol { margin-top: 0; margin-bottom: 1.15em; padding-left: 1.35em; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.site-main { padding: 0 0 3rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-cream); }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.text-center { text-align: center; }

/* Header */
.site-header {
  background: var(--color-white);
  color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.25rem;
}
.site-branding { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.custom-logo-link img { max-height: 48px; width: auto; }
.site-logo-placeholder {
  width: 44px; height: 44px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.7rem;
  color: var(--color-white);
  letter-spacing: 0.04em; line-height: 1.15; text-align: center;
}
.branding-text .site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
}
.branding-text .site-title a { color: var(--color-navy); }
.branding-text .site-title a:hover { color: var(--color-river); }
.site-description {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400; letter-spacing: 0.02em;
}
.main-navigation ul {
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.35rem;
  list-style: none; margin: 0; padding: 0; align-items: center;
}
.main-navigation a {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
  color: var(--color-text); padding: 0.35rem 0; position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--color-navy); }
.main-navigation .current-menu-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--color-river);
}
.menu-toggle {
  display: none; background: transparent;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 0.45rem 0.85rem; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; color: var(--color-navy); cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-navigation {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-white); border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft); padding: 1rem 1.25rem 1.25rem;
  }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex; align-items: center;
  color: var(--color-white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,39,68,0.88) 0%, rgba(15,39,68,0.72) 42%, rgba(30,107,122,0.45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 4rem 0 5.5rem; max-width: 38rem; }
.hero-kicker {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-gold-light); margin: 0 0 0.75rem;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700;
  line-height: 1.05; margin-bottom: 0.35em;
}
.hero h1 span { display: block; }
.hero-lead {
  font-size: 1.15rem; line-height: 1.55;
  color: rgba(255,255,255,0.9); margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.feature-cards-wrap { position: relative; z-index: 3; margin-top: -3.5rem; margin-bottom: 0.5rem; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) {
  .feature-cards { grid-template-columns: 1fr; }
  .feature-cards-wrap { margin-top: -2rem; }
}
.feature-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border); text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15,39,68,0.14); }
.feature-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--color-navy-soft); display: flex; align-items: center;
  justify-content: center; color: var(--color-navy); font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.feature-card .btn { font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.35rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.btn-primary:hover { background: var(--color-river); border-color: var(--color-river); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); color: var(--color-white); }
.btn-outline-dark { background: transparent; color: var(--color-navy); border-color: var(--color-border); }
.btn-outline-dark:hover { border-color: var(--color-navy); color: var(--color-navy); }
.btn-gold { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); }
.btn-gold:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); color: var(--color-navy); }

/* Welcome */
.welcome-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) { .welcome-grid { grid-template-columns: 1.1fr 0.9fr; } }
.welcome-copy .lede { font-size: 1.15rem; color: var(--color-text); line-height: 1.65; }
.welcome-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.welcome-facts li {
  display: flex; gap: 0.75rem; padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem; color: var(--color-text-muted);
}
.welcome-facts strong { color: var(--color-navy); font-weight: 600; min-width: 5.5rem; }
.welcome-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--color-border);
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* Events */
.events-list { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; margin: 0 auto; }
.event-item {
  display: flex; gap: 1.25rem; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow-soft);
}
.event-date {
  flex-shrink: 0; width: 4rem; text-align: center;
  background: var(--color-navy-soft); border-radius: var(--radius); padding: 0.6rem 0.35rem;
}
.event-date .month {
  display: block; font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-river);
}
.event-date .day {
  display: block; font-family: var(--font-heading); font-size: 1.75rem;
  font-weight: 700; line-height: 1.1; color: var(--color-navy);
}
.event-content h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.event-content h3 a { color: var(--color-navy); }
.event-content h3 a:hover { color: var(--color-river); }
.event-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.35rem; }
.event-content p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem;
}
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--color-cream-dark); border: 1px solid var(--color-border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* River strip */
.river-strip { position: relative; min-height: 220px; display: flex; align-items: center; overflow: hidden; }
.river-strip-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.river-strip-bg::after { content: ""; position: absolute; inset: 0; background: rgba(15,39,68,0.7); }
.river-strip-inner { position: relative; z-index: 2; text-align: center; color: var(--color-white); padding: 3rem 1rem; }
.river-strip-inner h2 { color: var(--color-white); margin-bottom: 0.5rem; }
.river-strip-inner p { max-width: 32rem; margin: 0 auto; color: rgba(255,255,255,0.88); font-size: 1.05rem; }

/* CTA */
.cta-section { text-align: center; padding: 3.5rem 0; }
.cta-section .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--color-navy); color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem; margin-top: auto;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--color-gold-light); }
.footer-widgets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-column .widget-title, .footer-column h3 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-gold-light); margin-bottom: 1rem;
}
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 0.4rem; }
.footer-column p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.6rem; }
.footer-motto {
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.05rem; color: var(--color-gold-light);
}
.site-info {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem; text-align: center; font-size: 0.9rem;
}
.site-info p { margin-bottom: 0.4rem; }

/* Content pages */
.page-header, .entry-header { margin-bottom: 1.75rem; }
.entry-content { max-width: 720px; }
.entry-content img { border-radius: var(--radius); }
.officers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem;
}
.officer-card {
  text-align: center; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.5rem 1rem; box-shadow: var(--shadow-soft);
}
.officer-card img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem; border: 3px solid var(--color-navy-soft);
}
.widget-area .widget {
  background: var(--color-cream); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem;
}
.widget-title { font-size: 1rem; margin-bottom: 0.75rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
  flex: 1; padding: 0.55rem 0.85rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
}
.search-form button {
  padding: 0.55rem 1rem; background: var(--color-navy); color: var(--color-white);
  border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--color-navy); color: var(--color-white);
  padding: 0.5rem 1rem; z-index: 10000; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.error-404 { text-align: center; padding: 4rem 1rem; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
