/* ============================================================
   Bethesda Methodist Mission — Shared Stylesheet
   Navigation colours taken from bethesda_methodist_mission.html
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  --navy:#1A2A4A;
  --navy-dark:#0F1E36;
  --navy-mid:#1E3258;
  --gold:#C9A84C;
  --gold-light:#F0D98A;
  --gold-bar:#B8962E;
  --gold-pale:#FBF5E4;
  --white:#FFFFFF;
  --off-white:#F8F9FB;
  --text-dark:#1C2333;
  --text-mid:#4A5468;
  --text-light:#8A93A6;
  --border:rgba(26,42,74,0.12);
  --ff-display:'Playfair Display',Georgia,serif;
  --ff-body:'DM Sans',sans-serif;
}
html{scroll-behavior:smooth;}
body{font-family:var(--ff-body);color:var(--text-dark);background:var(--white);font-size:16px;line-height:1.7;}
img{max-width:100%;display:block;}
a{color:var(--navy);}

/* ===== GOLD TOP BAR ===== */
.top-bar{background:var(--gold-bar);height:5px;width:100%;}

/* ===== NAV ===== */
nav{
  position:sticky;top:0;z-index:200;
  background:var(--navy);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 2.5rem;height:72px;
  border-bottom:3px solid var(--gold-bar);
}
.nav-logo{display:flex;align-items:center;gap:12px;text-decoration:none;}
.nav-logo .logo-mark{
  width:44px;height:44px;border-radius:50%;
  background:var(--gold);color:var(--navy-dark);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-display);font-weight:700;font-size:1.05rem;letter-spacing:0.02em;
}
.nav-logo .logo-text{line-height:1.2;}
.nav-logo .logo-text strong{display:block;color:var(--white);font-size:0.95rem;font-weight:600;letter-spacing:0.02em;}
.nav-logo .logo-text span{display:block;color:var(--gold-light);font-size:0.62rem;letter-spacing:0.22em;text-transform:uppercase;}

.nav-links{display:flex;align-items:center;gap:0;list-style:none;height:100%;}
.nav-links>li{position:relative;height:100%;display:flex;align-items:center;}
.nav-links>li>a{
  display:flex;align-items:center;gap:4px;
  padding:0 1rem;height:100%;
  font-size:0.8rem;font-weight:600;letter-spacing:0.03em;text-transform:uppercase;
  color:rgba(255,255,255,0.85);text-decoration:none;
  border-bottom:3px solid transparent;
  transition:color 0.2s,border-color 0.2s;white-space:nowrap;
}
.nav-links>li>a:hover,.nav-links>li.active>a{color:var(--gold-light);border-bottom-color:var(--gold);}
.nav-links>li>a .caret{font-size:0.6rem;opacity:0.7;margin-left:2px;transition:transform 0.2s;}
.nav-links>li:hover>a .caret{transform:rotate(180deg);}

/* DROPDOWN */
.dropdown{
  position:absolute;top:100%;left:0;
  background:var(--navy-dark);
  border-top:3px solid var(--gold);
  border-radius:0 0 8px 8px;min-width:240px;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity 0.2s,transform 0.2s,visibility 0.2s;
  z-index:300;box-shadow:0 8px 24px rgba(0,0,0,0.35);
  list-style:none;
}
.nav-links>li:hover .dropdown,.nav-links>li:focus-within .dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.dropdown li{list-style:none;}
.dropdown li a{
  display:block;padding:10px 18px;
  font-size:0.8rem;font-weight:500;letter-spacing:0.02em;text-transform:uppercase;
  color:rgba(255,255,255,0.75);text-decoration:none;
  border-left:3px solid transparent;
  transition:color 0.15s,background 0.15s,border-color 0.15s;
}
.dropdown li a:hover{color:var(--gold-light);background:rgba(255,255,255,0.05);border-left-color:var(--gold);}
.dropdown li+li{border-top:1px solid rgba(255,255,255,0.06);}

/* NAV GIVE BTN */
.nav-give{
  background:var(--gold);color:var(--navy-dark) !important;
  padding:9px 22px !important;border-radius:50px;
  height:auto !important;border-bottom:none !important;
  font-weight:700 !important;margin-left:0.75rem;
  transition:background 0.2s,transform 0.2s !important;
}
.nav-give:hover{background:var(--gold-light);transform:translateY(-1px);}

/* MOBILE NAV */
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;}
.nav-toggle span{display:block;width:26px;height:2px;background:var(--white);margin:6px 0;transition:0.3s;}
@media(max-width:1080px){
  nav{padding:0 1.25rem;flex-wrap:wrap;height:auto;min-height:64px;}
  .nav-toggle{display:block;}
  .nav-links{
    display:none;flex-direction:column;align-items:stretch;width:100%;
    height:auto;padding-bottom:1rem;
  }
  .nav-links.open{display:flex;}
  .nav-links>li{height:auto;flex-direction:column;align-items:stretch;}
  .nav-links>li>a{padding:12px 0.5rem;height:auto;border-bottom:1px solid rgba(255,255,255,0.08);}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:0;min-width:0;display:none;}
  .nav-links>li.open .dropdown{display:block;}
  .nav-links>li.open>a .caret{transform:rotate(180deg);}
  .nav-give{display:inline-block;text-align:center;margin:0.75rem 0 0;}
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero{
  background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 60%,var(--navy-mid) 100%);
  color:var(--white);text-align:center;
  padding:5rem 1.5rem 4.5rem;position:relative;overflow:hidden;
}
.page-hero::after{
  content:"✦";position:absolute;font-size:14rem;color:rgba(201,168,76,0.06);
  right:-2rem;top:-3rem;line-height:1;
}
.page-hero .eyebrow{font-size:0.72rem;letter-spacing:0.28em;text-transform:uppercase;color:var(--gold);margin-bottom:0.9rem;}
.page-hero h1{font-family:var(--ff-display);font-size:clamp(2.1rem,5vw,3.2rem);font-weight:600;line-height:1.15;}
.page-hero h1 em{font-style:italic;color:var(--gold-light);}
.page-hero p.sub{max-width:640px;margin:1.2rem auto 0;color:rgba(255,255,255,0.75);font-size:1rem;}
.page-hero .rule{width:48px;height:2px;background:var(--gold);margin:1.6rem auto 0;}

/* ===== SECTIONS ===== */
section{padding:4.5rem 1.5rem;}
.section-inner{max-width:1140px;margin:0 auto;}
.section-label{font-size:0.72rem;letter-spacing:0.26em;text-transform:uppercase;color:var(--gold-bar);font-weight:700;margin-bottom:0.7rem;text-align:center;}
.section-title{font-family:var(--ff-display);font-size:clamp(1.7rem,3.6vw,2.4rem);font-weight:600;color:var(--navy);text-align:center;line-height:1.2;}
.section-title em{font-style:italic;color:var(--gold-bar);}
.section-sub{max-width:660px;margin:1rem auto 2.6rem;color:var(--text-mid);text-align:center;font-size:0.98rem;}
.section-rule{width:44px;height:2px;background:var(--gold);margin:1.4rem auto 2.4rem;}
.alt-bg{background:var(--off-white);}
.dark-section{background:var(--navy-dark);color:var(--white);}
.dark-section .section-title{color:var(--white);}
.dark-section .section-sub{color:rgba(255,255,255,0.7);}
.dark-section .section-label{color:var(--gold);}

/* ===== BUTTONS ===== */
.btn-primary{
  display:inline-block;background:var(--gold);color:var(--navy-dark);
  padding:0.85rem 2rem;border-radius:50px;text-decoration:none;
  font-weight:700;font-size:0.85rem;letter-spacing:0.05em;text-transform:uppercase;
  transition:background 0.2s,transform 0.2s;
}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-2px);}
.btn-outline{
  display:inline-block;border:1.5px solid rgba(255,255,255,0.4);color:var(--white);
  padding:0.85rem 2rem;border-radius:50px;text-decoration:none;
  font-weight:600;font-size:0.85rem;letter-spacing:0.05em;text-transform:uppercase;
  transition:border-color 0.2s,color 0.2s,transform 0.2s;
}
.btn-outline:hover{border-color:var(--gold);color:var(--gold-light);transform:translateY(-2px);}
.btn-outline.on-white{border-color:var(--navy);color:var(--navy);}
.btn-outline.on-white:hover{border-color:var(--gold-bar);color:var(--gold-bar);}

/* ===== CARD GRIDS ===== */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;}
.card{
  background:var(--white);border:1px solid var(--border);border-radius:12px;
  padding:2rem 1.75rem;box-shadow:0 2px 10px rgba(26,42,74,0.05);
  transition:transform 0.2s,box-shadow 0.2s,border-color 0.2s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(26,42,74,0.12);border-color:rgba(201,168,76,0.5);}
.card .card-icon{font-size:1.8rem;margin-bottom:0.9rem;}
.card h3{font-family:var(--ff-display);font-size:1.2rem;color:var(--navy);margin-bottom:0.5rem;}
.card p{font-size:0.92rem;color:var(--text-mid);}
.card .card-link{display:inline-block;margin-top:1rem;font-size:0.8rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--gold-bar);text-decoration:none;}
.card .card-link:hover{color:var(--navy);}

/* ===== EVENT CARDS ===== */
.event-card{
  background:var(--white);border:1px solid var(--border);border-radius:12px;overflow:hidden;
  box-shadow:0 2px 10px rgba(26,42,74,0.05);display:flex;flex-direction:column;
  transition:transform 0.2s,box-shadow 0.2s;
}
.event-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(26,42,74,0.12);}
.event-card .event-head{background:var(--navy);color:var(--white);padding:1.4rem 1.6rem;display:flex;align-items:center;gap:1rem;}
.event-card .event-date{
  background:var(--gold);color:var(--navy-dark);border-radius:10px;
  min-width:64px;text-align:center;padding:0.5rem 0.4rem;line-height:1.15;flex-shrink:0;
}
.event-card .event-date .d{font-size:1.4rem;font-weight:700;display:block;}
.event-card .event-date .m{font-size:0.68rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:700;display:block;}
.event-card .event-head h3{font-family:var(--ff-display);font-size:1.15rem;font-weight:600;line-height:1.3;}
.event-card .event-head .event-tag{font-size:0.65rem;letter-spacing:0.16em;text-transform:uppercase;color:var(--gold-light);display:block;margin-bottom:0.25rem;}
.event-card .event-body{padding:1.5rem 1.6rem;flex:1;display:flex;flex-direction:column;}
.event-card .event-body p{font-size:0.92rem;color:var(--text-mid);}
.event-card .event-meta{margin:1rem 0 0;font-size:0.85rem;color:var(--text-dark);list-style:none;}
.event-card .event-meta li{padding:0.25rem 0;}
.event-card .event-body .card-link{margin-top:auto;padding-top:1.2rem;display:inline-block;font-size:0.8rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--gold-bar);text-decoration:none;}
.event-card .event-body .card-link:hover{color:var(--navy);}

/* ===== GIVING / DETAIL CARDS ===== */
.detail-card{
  background:var(--white);border:1px solid var(--border);border-top:4px solid var(--gold);
  border-radius:12px;padding:2rem 1.75rem;box-shadow:0 2px 10px rgba(26,42,74,0.06);
}
.detail-card .label{font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold-bar);font-weight:700;margin-bottom:0.6rem;}
.detail-card h3{font-family:var(--ff-display);font-size:1.3rem;color:var(--navy);margin-bottom:1rem;}
.detail-row{display:flex;justify-content:space-between;gap:1rem;padding:0.55rem 0;border-bottom:1px dashed var(--border);font-size:0.92rem;}
.detail-row:last-child{border-bottom:none;}
.detail-row .k{color:var(--text-light);}
.detail-row .v{font-weight:600;color:var(--text-dark);text-align:right;}

/* ===== NOTICE LIST (flyer-style bullets) ===== */
.notice-list{list-style:none;max-width:760px;margin:0 auto;}
.notice-list li{
  padding:1.1rem 0 1.1rem 1.6rem;position:relative;
  border-bottom:2px solid var(--gold-bar);
  font-weight:600;color:var(--navy);font-size:1rem;line-height:1.55;
}
.notice-list li:last-child{border-bottom:none;}
.notice-list li::before{content:"•";color:var(--gold-bar);position:absolute;left:0;font-size:1.4rem;line-height:1.2;}

/* ===== TABLES ===== */
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;}
table{width:100%;border-collapse:collapse;background:var(--white);}
thead tr{background:var(--navy);}
thead th{padding:0.9rem 1.4rem;text-align:left;font-size:0.72rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--gold-light);font-weight:600;}
tbody td{padding:0.85rem 1.4rem;font-size:0.92rem;border-top:1px solid var(--border);}
tbody tr:hover{background:var(--gold-pale);}

/* ===== BANNER STRIP ===== */
.banner-strip{
  background:var(--gold);color:var(--navy-dark);text-align:center;
  padding:2.2rem 1.5rem;font-size:1.02rem;font-weight:500;
}
.banner-strip strong{font-weight:700;}

/* ===== FOOTER ===== */
footer{background:var(--navy-dark);color:rgba(255,255,255,0.7);padding:4rem 1.5rem 2rem;border-top:4px solid var(--gold-bar);}
.footer-inner{max-width:1140px;margin:0 auto;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:2.5rem;margin-bottom:3rem;}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand .logo{font-family:var(--ff-display);font-size:1.3rem;color:var(--white);margin-bottom:0.9rem;}
.footer-brand p{font-size:0.9rem;line-height:1.7;}
.footer-heading{font-size:0.7rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--gold);margin-bottom:1.1rem;font-weight:700;}
.footer-links{list-style:none;}
.footer-links li{margin-bottom:0.5rem;}
.footer-links a{color:rgba(255,255,255,0.7);text-decoration:none;font-size:0.9rem;transition:color 0.15s;}
.footer-links a:hover{color:var(--gold-light);}
.contact-line{display:flex;gap:0.6rem;margin-bottom:0.7rem;font-size:0.88rem;}
.contact-line .ic{color:var(--gold);flex-shrink:0;}
.contact-line a{color:rgba(255,255,255,0.75);text-decoration:none;}
.contact-line a:hover{color:var(--gold-light);}
.social-links{display:flex;gap:0.6rem;margin-top:1.2rem;}
.social-link{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,0.25);
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.8);
  text-decoration:none;font-size:0.9rem;transition:border-color 0.2s,color 0.2s;
}
.social-link:hover{border-color:var(--gold);color:var(--gold-light);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1);padding-top:1.5rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:0.5rem;font-size:0.8rem;color:rgba(255,255,255,0.45);
}

/* ===== HOME HERO ===== */
.hero{
  background:
    radial-gradient(ellipse at 20% 0%,rgba(201,168,76,0.14),transparent 55%),
    linear-gradient(160deg,var(--navy-dark) 0%,var(--navy) 55%,var(--navy-mid) 100%);
  color:var(--white);text-align:center;
  padding:6.5rem 1.5rem 5.5rem;position:relative;overflow:hidden;
}
.hero .eyebrow{font-size:0.75rem;letter-spacing:0.3em;text-transform:uppercase;color:var(--gold);margin-bottom:1.2rem;}
.hero h1{font-family:var(--ff-display);font-size:clamp(2.3rem,6vw,3.8rem);font-weight:600;line-height:1.12;max-width:820px;margin:0 auto;}
.hero h1 em{font-style:italic;color:var(--gold-light);}
.hero .tagline{margin:1.4rem auto 0;max-width:560px;color:rgba(255,255,255,0.75);font-size:1.05rem;font-style:italic;}
.hero-divider{width:44px;height:2px;background:var(--gold);margin:2.4rem auto;}
.hero-services{display:flex;justify-content:center;gap:1.2rem;flex-wrap:wrap;margin-bottom:2.8rem;}
.service-card{
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;padding:1.3rem 1.8rem;min-width:200px;backdrop-filter:blur(4px);
}
.service-card .day{font-size:0.7rem;letter-spacing:0.16em;text-transform:uppercase;color:rgba(255,255,255,0.6);}
.service-card .time{font-family:var(--ff-display);font-size:1.9rem;color:var(--gold-light);margin:0.2rem 0;}
.service-card .label{font-size:0.85rem;color:rgba(255,255,255,0.85);}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#E5484D;margin-right:5px;animation:pulse 1.6s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.35;}}
.hero-ctas{display:flex;justify-content:center;gap:0.9rem;flex-wrap:wrap;}

/* ===== BREADCRUMB PILL ===== */
.crumb{font-size:0.72rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--text-light);margin-bottom:0.4rem;}
.crumb a{color:var(--gold-bar);text-decoration:none;}

/* misc */
.center{text-align:center;}
.mt-2{margin-top:2rem;}

/* ============================================================
   v2 UPGRADES — polish, a11y, extras
   ============================================================ */

/* Anchor offset under sticky nav */
[id]{scroll-margin-top:96px;}

/* Skip link */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--gold);color:var(--navy-dark);font-weight:700;
  padding:0.7rem 1.4rem;border-radius:0 0 8px 0;text-decoration:none;
}
.skip-link:focus{left:0;}

/* Focus visibility */
a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px;}

/* Subtle diamond pattern on heroes */
.hero,.page-hero{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 10l3.5 14L24 38l-3.5-14z' fill='%23C9A84C' fill-opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 0%,rgba(201,168,76,0.14),transparent 55%),
    linear-gradient(160deg,var(--navy-dark) 0%,var(--navy) 55%,var(--navy-mid) 100%);
}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(26px);transition:opacity 0.65s ease,transform 0.65s ease;}
.reveal.visible{opacity:1;transform:none;}
.reveal-d1{transition-delay:0.1s;}
.reveal-d2{transition-delay:0.2s;}
.reveal-d3{transition-delay:0.3s;}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

/* Back to top */
#backTop{
  position:fixed;right:1.4rem;bottom:1.4rem;z-index:400;
  width:46px;height:46px;border-radius:50%;border:none;cursor:pointer;
  background:var(--navy);color:var(--gold-light);font-size:1.1rem;
  box-shadow:0 4px 16px rgba(15,30,54,0.35);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity 0.25s,transform 0.25s,visibility 0.25s,background 0.2s;
}
#backTop.show{opacity:1;visibility:visible;transform:none;}
#backTop:hover{background:var(--gold-bar);color:var(--navy-dark);}

/* Copy-to-clipboard */
.copy-btn{
  display:inline-flex;align-items:center;gap:6px;margin-top:1.1rem;
  background:var(--navy);color:var(--gold-light);border:none;cursor:pointer;
  padding:0.55rem 1.2rem;border-radius:50px;font-family:var(--ff-body);
  font-size:0.75rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;
  transition:background 0.2s,transform 0.2s;
}
.copy-btn:hover{background:var(--gold-bar);color:var(--navy-dark);transform:translateY(-1px);}
.copy-btn.copied{background:#2E7D46;color:#fff;}

/* Countdown */
.countdown{display:flex;justify-content:center;gap:0.9rem;flex-wrap:wrap;margin:2rem 0 0.6rem;}
.countdown .cd-box{
  background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.14);
  border-radius:12px;min-width:82px;padding:0.9rem 0.6rem;text-align:center;backdrop-filter:blur(4px);
}
.countdown .cd-num{font-family:var(--ff-display);font-size:2rem;color:var(--gold-light);line-height:1;display:block;}
.countdown .cd-lbl{font-size:0.62rem;letter-spacing:0.2em;text-transform:uppercase;color:rgba(255,255,255,0.6);margin-top:0.4rem;display:block;}
.countdown-label{font-size:0.72rem;letter-spacing:0.24em;text-transform:uppercase;color:var(--gold);text-align:center;}

/* Responsive video embed */
.video-wrap{
  position:relative;width:100%;max-width:840px;margin:0 auto;
  aspect-ratio:16/9;border-radius:14px;overflow:hidden;
  box-shadow:0 12px 36px rgba(15,30,54,0.25);border:1px solid var(--border);
}
.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* Map embed */
.map-wrap{
  border-radius:14px;overflow:hidden;border:1px solid var(--border);
  box-shadow:0 8px 28px rgba(15,30,54,0.12);margin-top:2.5rem;
}
.map-wrap iframe{display:block;width:100%;height:380px;border:0;}
