:root{
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #0b3b66;
  --accent-2: #c69a3a;
  --card: #f7f9fb;
  --max-width: 1100px;
  --radius: 12px;
  --ease: cubic-bezier(.2,.9,.2,1);
  --header-height: 120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  color:#0f1724;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
}

/* container */
.container{
  width:calc(100% - 40px);
  max-width:var(--max-width);
  margin:0 auto;
  padding:40px 0;
}

/* header */
.site-header{
  background: var(--bg);
  border-bottom: 1px solid rgba(15,23,36,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner{
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  overflow: visible; /* ensures X isn't hidden */
}
#site-logo{
  height:120px !important;
  width:auto !important;
  display:block;
  transition:transform .35s var(--ease);
}
#site-logo:hover{transform:translateY(-3px)}

/* nav */
.main-nav{position:relative}
.nav-toggle{
  display:none; /* mobile only overridden below */
  background:none;
  border:1px solid rgba(15,23,36,0.06);
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  position: fixed;  /* keep visible */
  top: 40px;       /* lower from top */
  right: 20px;
  z-index: 3000;    /* above slide panel */
}
.nav-toggle .bar{
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: #0f172a;
  border-radius: 2px;
  transition: 0.3s ease;
}
.nav-toggle.open .bar:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2){
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}

.nav-list{
  list-style:none;
  margin:0;
  padding:40px 30px;
  display:flex;
  gap:18px;
  align-items:center;
  flex-direction: row;
}
.nav-list a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  letter-spacing:0.02em;
  padding:8px 12px;
  border-radius:8px;
  transition:all .25s var(--ease);
}
.nav-list a:hover,
.nav-list a.active{
  color:var(--accent);
  background:rgba(11,59,102,0.04);
}

/* hero */
.hero{
  padding:0 0 0 0;
}
.hero-inner{max-width:900px}
.hero-title{
  font-family:"Montserrat",sans-serif;
  font-size:clamp(28px, 4vw, 44px);
  margin:0 0 18px 0;
  color:var(--accent);
  line-height:1.05;
}
.hero-sub{
  margin:0 0 18px 0;
  color:#1f2937;
  font-weight:400;
  font-size:1.05rem;
}
.hero-note{
  color:var(--muted);
  font-size:.95rem;
  margin-top:-30px;
  margin-bottom:0;
}

/* Contact page hero fix */
.contact-hero .hero-title {
  margin-top: -32px;   /* move title upward */
}


/* info strip */
.info-strip{padding:0 0 0 0}
.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:-60px;
}
.info-card{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 6px 20px rgba(12,18,30,0.04);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover{transform:translateY(-4px); box-shadow:0 14px 36px rgba(12,18,30,0.07)}
.info-card h3{margin:0 0 8px 0; color:var(--accent); font-family:"Montserrat",sans-serif; font-size:1.05rem}
.info-card p{margin:0; color:var(--muted)}

/* calendar section */
.calendar-section{
  padding: 60px 0;
  background: #f7f9fb;
}
.calendar-section h2{
  font-family:"Montserrat",sans-serif;
  font-size:2rem;
  color: var(--accent);
  text-align:center;
  margin-bottom:40px;
}
.calendar-section iframe{
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius:12px;
  box-shadow:0 8px 28px rgba(12,18,30,0.07);
  display: block;
  margin: 0 auto;
}

/* contact content */
.contact-content{
  margin-top:24px;
  font-size:1rem;
  line-height:1.6;
}

/* footer */
.site-footer{
  border-top:1px solid rgba(15,23,36,0.04);
  padding:26px 0;
  text-align:center;
  color:var(--muted);
  font-size:.95rem;
}

/* responsive */
@media (max-width:900px){
  #site-logo{height:90px !important}
  .info-grid{grid-template-columns:1fr}
}

/* Fix text sizes on phones */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; margin-top: 25px; }
  p { font-size: 0.95rem; padding: 0 15px; }
  .info-card { width: 92%; padding: 20px; }
  iframe { width: 92%; height: 300px; }
  #admin-popup { width: 85%; }
  .logo { font-size: 1.2rem; }
}

/* ========================================================= */
/* FINAL MOBILE NAV: HAMBURGER + SLIDE-IN PANEL FROM RIGHT  */
/* ========================================================= */
@media (max-width: 900px){
  .nav-toggle {
    display: block;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 130px 30px 30px 30px; /* pushes buttons lower */
    position: fixed;
    top: 0;
    right: -260px; /* off screen */
    width: 260px;
    height: 100%;
    background: white;
    flex-direction: column;
    gap: 20px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 2500; /* under toggle */
  }

  .nav-list.show {
    right: 0; /* slide in */
  }

  .nav-list a {
    white-space: nowrap;
    font-size: 1.2rem;
    line-height: 1.3;
    padding: 8px 4px;
  }
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav li {
    margin: 0 0 6px 0;
}

.header-nav a {
    text-decoration: none;
}

/* Fix header layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Make nav horizontal */
.header-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Make links look correct */
.header-nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #4a2d82; /* Purple (your site’s color) */
}

/* Highlight active page */
.header-nav ul li a.active {
    text-decoration: underline;
}

/* Disable animation during state restore */
.nav-list.no-animate {
    transition: none !important;
}

.nav-toggle.no-animate .bar {
    transition: none !important;
}

/* Prevent horizontal shifting on pages with iframes (like Giving) */
body {
    overflow-x: hidden;
}

html {
  overflow-y: scroll;
}

html, body {
  overflow-x: hidden !important;
}



