/* ============================================================
   BRANT LODGE NO. 45 — Master Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');

/* --- Design Tokens --- */
:root {
  --ivory:        #F8F6F1;
  --stone:        #EFECE5;
  --navy:         #1A2744;
  --navy-dark:    #111b30;
  --gold:         #C9A84C;
  --gold-light:   #E2C06A;
  --gold-pale:    #f5e9cc;
  --charcoal:     #2C2C2C;
  --slate:        #7A7A7A;
  --white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --text-hero:    clamp(3rem, 8vw, 6.5rem);
  --text-h2:      clamp(2rem, 4vw, 3.25rem);
  --text-h3:      clamp(1.25rem, 2vw, 1.75rem);
  --text-body:    clamp(1rem, 1.2vw, 1.125rem);
  --text-label:   0.8125rem;

  --radius:       4px;
  --transition:   0.3s ease;
  --shadow-card:  0 4px 30px rgba(26,39,68,0.08);
  --shadow-heavy: 0 12px 60px rgba(26,39,68,0.18);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography Helpers --- */
.font-display { font-family: var(--font-display); }
.font-ui      { font-family: var(--font-ui); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-nav.scrolled {
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26,39,68,0.08), 0 4px 20px rgba(26,39,68,0.06);
  padding: 0.85rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.nav-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory) !important;
  border: 1px solid var(--gold);
  padding: 0.55rem 1.25rem;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-mobile-overlay a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--ivory);
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-mobile-overlay a:hover { color: var(--gold); }

.nav-mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--ivory);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   PAGE HERO (inner pages — 55vh)
   ============================================================ */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg { transform: scale(1.0); }

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.page-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.03em;
}

.page-hero-rule {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-dark {
  background: var(--navy);
  color: var(--ivory);
}

.section-dark h2, .section-dark h3 { color: var(--ivory); }

.section-stone { background: var(--stone); }

.section-label {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.gold-rule {
  width: 50px; height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  transform-origin: left;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-bottom-color: var(--gold);
}

.card-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(248,246,241,0.75);
  padding: 4rem clamp(1.5rem, 5vw, 5rem) 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory);
  font-weight: 400;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(248,246,241,0.7);
  transition: color var(--transition);
  font-family: var(--font-ui);
}

.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(248,246,241,0.45);
  margin: 0;
}

.footer-ontario-logo {
  height: 24px;
  width: auto;
  opacity: 0.6;
  /*filter: brightness(0) invert(1)*/;
  transition: opacity var(--transition);
}

.footer-ontario-logo:hover { opacity: 1; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.gold-rule-animate {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease;
}

.gold-rule-animate.visible { transform: scaleX(1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
