/*
Theme Name: Temple Masonic Lodge 46
Theme URI: https://example.com/temple-masonic-lodge-46
Author: Temple Masonic Lodge 46
Description: Custom homepage theme for Temple Masonic Lodge 46.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: temple-masonic-lodge-46
*/

:root {
  --lodge-navy: #0f1f33;
  --lodge-gold: #cba54a;
  --lodge-cream: #f8f3e7;
  --lodge-charcoal: #1d2330;
  --hero-overlay: rgba(15, 31, 51, 0.5);
  --focus-ring: #ffe7a3;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--lodge-charcoal);
  background: radial-gradient(circle at 20% 20%, #fffef9 0%, #f3e9cf 55%, #e9dcbd 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-hero {
  position: relative;
  min-height: 58vh;
  background-image: url("assets/images/backpack.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  overflow: hidden;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.top-hero-bar {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
  animation: lift-in 650ms ease-out both;
}

.main-nav {
  width: 100%;
}

.main-nav-left,
.main-nav-right {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.main-nav-left ul {
  justify-content: center;
}

.main-nav-right ul {
  justify-content: center;
}

.main-nav a {
  display: inline-block;
  padding: 0.35rem 0.2rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.2vw, 1.03rem);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  color: #ffe4a0;
  transform: translateY(-1px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.15rem 0.35rem;
}

.brand-logo {
  width: clamp(42px, 5vw, 64px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.site-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.welcome-section {
  position: relative;
  max-width: 980px;
  margin: 2.75rem auto 4rem;
  padding: 0 1.25rem;
  animation: rise-in 700ms ease-out both;
  animation-delay: 120ms;
}

.welcome-section::before,
.welcome-section::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: clamp(126px, 15.75vw, 195px);
  height: min(clamp(382px, 58.5vw, 615px), calc(100% - 1rem));
  background-image: url("assets/images/newpillars.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  pointer-events: none;
  opacity: 0.95;
}

.welcome-section::before {
  left: calc(-10.2rem - 10px);
}

.welcome-section::after {
  right: calc(-10.2rem - 10px);
  transform: scaleX(-1);
}

.welcome-card {
  background: rgba(255, 251, 239, 0.94);
  border: 1px solid #e8d9b3;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(24, 34, 52, 0.12);
  padding: clamp(1.2rem, 2.6vw, 2.4rem);
}

.welcome-card h2,
.welcome-card h3 {
  font-family: var(--font-display);
  color: var(--lodge-navy);
  margin-top: 0;
}

.welcome-card h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 1rem;
}

.welcome-card h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

.welcome-card p {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.welcome-card a {
  color: #243a69;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.welcome-card a:hover {
  color: #162541;
}

.welcome-card ul {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
}

.welcome-card li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.doc-embed-wrap {
  margin-top: 1.25rem;
  border: 1px solid #d9c59a;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.doc-embed {
  width: 100%;
  min-height: 78vh;
  border: 0;
}

.media-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.1rem;
}

.video-embed-wrap {
  border: 1px solid #d9c59a;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
}

.video-embed-wrap h3 {
  margin: 0 0 0.6rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid #d8c7a2;
  border-radius: 12px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.data-table th,
.data-table td {
  border: 1px solid #e2d6bc;
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f4e6c6;
  color: #1d2330;
  z-index: 1;
}

.welcome-card .meeting-line {
  margin: 0.2rem 0;
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  background: var(--lodge-navy);
  color: #f9f4e4;
  text-align: center;
  padding: 1rem;
  font-size: 1.05rem;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .top-hero-bar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    justify-items: center;
  }

  .brand-wrap {
    order: 1;
  }

  .main-nav-left {
    order: 2;
  }

  .main-nav-right {
    order: 3;
  }

  .main-nav-left ul,
  .main-nav-right ul {
    justify-content: center;
  }

  .site-title {
    white-space: normal;
  }

  .welcome-section::before,
  .welcome-section::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-hero {
    min-height: 46vh;
    padding-top: 1rem;
  }

  .main-nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  .doc-embed {
    min-height: 62vh;
  }

  .video-embed-wrap {
    padding: 0.6rem;
  }
}
