/* ============================================================
   DARLINGTON MASONIC HALL — Main Stylesheet
   ============================================================ */

/* 1. Custom Properties
   ============================================================ */
:root {
  --navy:        #333B61;
  --navy-dark:   #252d4e;
  --gold:        #A99C72;
  --gold-dark:   #8a7f5a;
  --cream:       #D0C8B2;
  --cream-light: #F8F6F2;
  --white:       #ffffff;
  --text:        #333B61;
  --text-muted:  rgba(51, 59, 97, 0.68);

  --font-brand: 'Tropea', Georgia, 'Times New Roman', serif;
  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-height:   150px;
  --section-pad:  clamp(3.5rem, 7vw, 6rem);
  --container:    1200px;
  --radius:       8px;
  --radius-lg:    16px;

  --shadow-sm: 0 2px 8px  rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .11);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, .16);

  --transition: 0.25s ease;
}

/* 2. Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* 3. Base
   ============================================================ */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  padding-top: var(--nav-height);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-brand);
  line-height: 1.2;
  font-weight: normal;
}

p { line-height: 1.7; }

/* 4. Layout
   ============================================================ */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.container--narrow {
  width: min(780px, 100% - 3rem);
  margin-inline: auto;
}
.container--mid {
  width: min(960px, 100% - 3rem);
  margin-inline: auto;
}

section { padding: var(--section-pad) 0; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* 5. Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 200, 178, 0.35);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.nav-logo img { height: 200px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--navy);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-links .nav-enquire {
  background: var(--gold);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-brand);
  transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-enquire::after { display: none; }
.nav-links .nav-enquire:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid var(--cream);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(209,200,178,0.3);
    font-size: 1.05rem;
  }
  .nav-links a::after { display: none; }
  .nav-links .nav-enquire {
    margin: 1rem 1.5rem 0;
    text-align: center;
    border-radius: var(--radius);
    border-bottom: none;
    padding: 0.75rem 1.5rem;
  }
}

/* 6. Hero (video)
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video,
.hero-media .hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster { display: none; }
@media (max-width: 820px) {
  .hero-video  { display: none; }
  .hero-poster { display: block; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.18) 0%,
    rgba(37,45,78,0.55) 55%,
    rgba(37,45,78,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 820px;
}
.hero-logo {
  height: clamp(100px, 14vw, 200px);
  width: auto;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}
.hero-content h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 38px;
  background: rgba(255,255,255,0.38);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* 7. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.1rem;
  border-radius: var(--radius);
  font-family: var(--font-brand);
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(169,156,114,0.4);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn-group--left { justify-content: flex-start; }

/* 8. Section Headings
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.75;
}

.section--cream  { background: var(--cream-light); }
.section--navy   { background: var(--navy); }
.section--navy .section-title,
.section--navy h2,
.section--navy h3   { color: var(--white); }
.section--navy .section-label { color: var(--cream); }
.section--navy p,
.section--navy li   { color: rgba(255,255,255,0.8); }

/* 9. Feature Cards
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card__image img { transform: scale(1.05); }
.feature-card__body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.feature-card__title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.feature-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  flex: 1;
}

/* 10. Tick List
   ============================================================ */
.tick-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.7rem 2rem;
  margin-top: 1.5rem;
}
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
  line-height: 1.5;
}
.tick-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* 11. Content Split (two-column)
   ============================================================ */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-split--reverse { direction: rtl; }
.content-split--reverse > * { direction: ltr; }
.content-split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.content-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .content-split           { grid-template-columns: 1fr; gap: 2rem; }
  .content-split--reverse  { direction: ltr; }
}

/* 12. Gallery Grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

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

/* 13. Page Hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 25%, rgba(37,45,78,0.85) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-bottom: 3rem;
  width: 100%;
}
.page-hero__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white);
}
.page-hero__sub {
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* 14. Testimonials
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255,255,255,0.07);
}
.section--cream .testimonial {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.testimonial__stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.testimonial__text {
  font-style: italic;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  font-size: 0.97rem;
}
.section--cream .testimonial__text { color: var(--text-muted); }

/* 15. Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(209,200,178,0.8);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169,156,114,0.18);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-error-msg {
  color: #b94040;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(185,64,64,0.08);
  border-radius: var(--radius);
  display: none;
}
.form-error-msg.visible { display: block; }
.form-success-state { display: none; text-align: center; padding: 2rem 1rem; }
.form-success-state.visible { display: block; }
.form-success-state h3 { color: var(--navy); margin-bottom: 0.5rem; }
.form-success-state p  { color: var(--text-muted); }

/* 16. Brochure Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(500px, 100%);
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream-light);
  color: var(--navy);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { background: var(--cream); }
.modal__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.modal__title { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem; }
.modal__sub {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.modal-download-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* 17. CTA Strip
   ============================================================ */
.cta-strip {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
}

/* 18. FAQ Accordion
   ============================================================ */
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid rgba(209,200,178,0.7); }
.faq-question {
  width: 100%;
  text-align: left;
  font-family: var(--font-brand);
  font-size: 1.08rem;
  color: var(--navy);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.25rem; }

/* 19. Contact Info
   ============================================================ */
.contact-info {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
}
.contact-info h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream);
}
.contact-detail {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-detail__icon { flex-shrink: 0; margin-top: 0.15em; }
.contact-detail a { color: var(--navy); transition: color var(--transition); }
.contact-detail a:hover { color: var(--gold); }

/* 20. Footer
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.72);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-logo img {
  height: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 1rem;
}
.footer-logo p { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 {
  font-family: var(--font-brand);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}
.footer-col address a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.32);
}
.footer-bottom a { color: rgba(255,255,255,0.32); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* 21. Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* 22. Hall Diary Calendar
   ============================================================ */
.diary-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 2rem;
}
.diary-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.diary-month-label { font-family: var(--font-brand); font-size: 1.25rem; }
.diary-nav { display: flex; gap: 0.5rem; }
.diary-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.diary-nav button:hover { background: rgba(255,255,255,0.25); }

.diary-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream);
}
.diary-weekday {
  padding: 0.55rem 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.diary-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(209,200,178,0.35);
}
.diary-cell {
  background: var(--white);
  min-height: 88px;
  padding: 0.45rem 0.5rem;
}
.diary-cell--other { background: var(--cream-light); opacity: 0.65; }
.diary-cell--today .day-number {
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
}
.day-number {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.3rem;
}
.diary-event {
  font-size: 0.68rem;
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  margin-bottom: 0.2rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diary-event--lodge     { background: rgba(51,59,97,0.12);    color: var(--navy);  border-left: 2px solid var(--navy); }
.diary-event--chapter   { background: rgba(169,156,114,0.18); color: #5e4e28;      border-left: 2px solid var(--gold); }
.diary-event--rehearsal { background: rgba(209,200,178,0.6);  color: #6b6040;      border-left: 2px solid var(--cream); }

.diary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--cream);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 0.45rem; }
.legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.legend-swatch--lodge     { background: var(--navy); }
.legend-swatch--chapter   { background: var(--gold); }
.legend-swatch--rehearsal { background: var(--cream); border: 1px solid rgba(209,200,178,0.8); }

@media (max-width: 640px) {
  .diary-cell { min-height: 52px; padding: 0.3rem 0.25rem; }
  .diary-event { display: none; }
  .diary-cell--has-events::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin: 2px auto 0;
  }
}

.diary-cell--has-events {
  cursor: pointer;
}

.diary-cell--has-events:hover {
  background: rgba(51,59,97,0.04);
}

/* ─── Day detail popup ───────────────────────────────────── */
.diary-popup {
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(51,59,97,0.15);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  animation: popup-in 0.18s ease;
}

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

.diary-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
}

.diary-popup__date {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.diary-popup__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.diary-popup__close:hover { color: #fff; }

.diary-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.diary-popup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.diary-popup__item:last-child { border-bottom: none; }

.diary-popup__name {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

.diary-popup__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.25em 0.7em;
}

.diary-popup__item--lodge .diary-popup__badge {
  background: rgba(51,59,97,0.1);
  color: var(--navy);
}

.diary-popup__item--chapter .diary-popup__badge {
  background: rgba(169,156,114,0.2);
  color: #5e4e28;
}

.diary-popup__item--rehearsal .diary-popup__badge {
  background: rgba(209,200,178,0.5);
  color: #6b6040;
}

/* 23. Lodge Cards
   ============================================================ */
.lodge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.lodge-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.lodge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lodge-card__name  { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem; }
.lodge-card__number {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.lodge-card__detail { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* 24. Utility
   ============================================================ */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }

.gold-text { color: var(--gold); }

/* 25. Responsive Video Embed (YouTube etc.)
   ============================================================ */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--navy-dark);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 26. Lodge Directory
   ============================================================ */
.lodge-directory {
  border-top: 2px solid var(--gold);
}

.lodge-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem 2.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(169,156,114,0.25);
  transition: background var(--transition);
}

.lodge-row:last-child {
  border-bottom: none;
}

.lodge-row__identity {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lodge-row__name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: normal;
  line-height: 1.3;
  margin: 0;
}

.lodge-row__badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(169,156,114,0.12);
  border: 1px solid rgba(169,156,114,0.35);
  border-radius: 3px;
  padding: 0.2em 0.65em;
  align-self: flex-start;
}

.lodge-row__detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lodge-row__meets {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.lodge-row__contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.lodge-row__contact a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.lodge-row__contact a:hover {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .lodge-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 0;
  }
}

/* ─── Hall Diary app promo ────────────────────────────────── */
.diary-app-promo {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 3.5rem;
  padding: 2.5rem 0;
}

.diary-app-promo__qr img {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.10);
}

.diary-app-promo__text p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.diary-app-promo__url {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  background: rgba(169,156,114,0.1);
  border: 1px solid rgba(169,156,114,0.35);
  border-radius: 6px;
  padding: 0.45em 1em;
  text-decoration: none;
}

.diary-app-promo__url:hover {
  background: rgba(169,156,114,0.18);
  color: var(--gold-dark);
}

@media (max-width: 640px) {
  .diary-app-promo {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 0;
  }

  .diary-app-promo__qr {
    display: flex;
    justify-content: center;
  }
}

hr.divider {
  border: none;
  border-top: 1px solid rgba(209,200,178,0.6);
  margin: 3rem 0;
}
