/* =========================================================
   Rotary Club of Mequon-Milwaukee Diversity Passport
   Modern redesign — pure CSS
   ========================================================= */

:root {
  --azure: #17458f;        /* Rotary Azure */
  --azure-dark: #0f2f66;
  --azure-light: #2a5bb5;
  --gold: #f7a81b;         /* Rotary Gold */
  --gold-dark: #d68d00;
  --ink: #1c2431;
  --body: #47536b;
  --muted: #7a8699;
  --line: #e7ebf2;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(23, 69, 143, .06);
  --shadow: 0 12px 34px rgba(23, 69, 143, .12);
  --shadow-lg: 0 24px 60px rgba(15, 47, 102, .22);
  --container: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --head: "Georgia", "Times New Roman", serif;
  --nav-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--ink); line-height: 1.25; font-weight: 700; }
a { color: var(--azure); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 92%; max-width: var(--container); margin: 0 auto; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .74rem; color: var(--gold-dark);
  background: rgba(247,168,27,.12); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--azure-dark); box-shadow: 0 8px 22px rgba(247,168,27,.4); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(214,141,0,.5); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: #fff; color: var(--azure); transform: translateY(-3px); }
.btn--azure { background: var(--azure); color: #fff; }
.btn--azure:hover { background: var(--azure-dark); color: #fff; transform: translateY(-3px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--azure-dark);
  box-shadow: 0 2px 18px rgba(15,47,102,.35);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 18px;
}
.nav__logo img { height: 92px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > li { position: relative; }
.nav__menu a {
  display: block; color: #eaf0fb; font-weight: 600; font-size: .93rem;
  padding: 12px 15px; border-radius: 9px; letter-spacing: .01em;
}
.nav__menu a:hover, .nav__menu .active > a { color: #fff; background: rgba(255,255,255,.12); }
.nav__menu .active > a { color: var(--gold); }

/* dropdown */
.has-drop > a::after { content: "\25be"; font-size: .7em; margin-left: 6px; opacity: .8; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .22s ease; border: 1px solid var(--line);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--ink); padding: 11px 14px; border-radius: 8px; font-size: .9rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--azure); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 1100;
}
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: var(--azure-dark); flex-direction: column; align-items: stretch;
    padding: 90px 18px 30px; gap: 4px; transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1); overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu a { padding: 14px 16px; font-size: 1rem; }
  .has-drop > a::after { float: right; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,.06); border: 0; margin: 4px 0 4px 10px; display: none;
  }
  .dropdown a { color: #dce6f7; }
  .dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .has-drop.open .dropdown { display: block; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(8,20,45,.5); opacity: 0; visibility: hidden;
    transition: .3s; z-index: 999;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease, transform 6s ease; transform: scale(1.08);
}
.hero__bg .slide.active { opacity: 1; transform: scale(1); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.32) 45%, rgba(0,0,0,.15) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items:center; gap:8px; background: rgba(247,168,27,.18);
  border: 1px solid rgba(247,168,27,.5); color: var(--gold); font-weight: 700;
  padding: 8px 18px; border-radius: 999px; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; margin-bottom: 22px; font-family: var(--font);
}
.hero__slides { position: relative; min-height: 168px; }
.hero__text {
  position: absolute; inset: 0; opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease; pointer-events: none;
}
.hero__text.active { opacity: 1; transform: translateY(0); position: relative; pointer-events: auto; }
.hero__text h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.9rem); margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero__text p { font-size: clamp(1.05rem, 2vw, 1.4rem); color: #e7eefb; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__dots { display: flex; gap: 10px; margin-top: 40px; }
.hero__dots button {
  width: 34px; height: 5px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: .3s;
}
.hero__dots button.active { background: var(--gold); width: 52px; }
.hero__motto {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(15,47,102,.55); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__motto .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px; padding: 16px 0; }
.hero__motto span { font-family: var(--head); font-style: italic; color: #fff; font-size: 1.02rem; }
.hero__motto b { color: var(--gold); font-style: normal; }

/* =========================================================
   PAGE BANNER (interior pages)
   ========================================================= */
.page-banner {
  position: relative; color: #fff; padding: 76px 0 60px; text-align: center;
  background: linear-gradient(120deg, var(--azure-dark), var(--azure) 70%, var(--azure-light));
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(247,168,27,.22), transparent 70%); border-radius: 50%;
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); position: relative; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 14px; font-size: .92rem; position: relative; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.65); }

/* =========================================================
   HOME sections
   ========================================================= */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: center; }
.intro-grid__img { position: relative; }
.intro-grid__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.intro-grid__img::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px;
  border: 4px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.intro-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.intro-grid p { margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat__num { font-family: var(--head); font-size: 2.4rem; font-weight: 700; color: var(--azure); }
.stat__num span { color: var(--gold); }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Focus / feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__icon {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(247,168,27,.16), rgba(23,69,143,.1));
  display: grid; place-items: center; padding: 18px;
}
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--azure); }
.card p { font-size: .95rem; color: var(--body); }

/* Content article */
.content-wrap { max-width: 900px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; color: var(--azure); margin: 30px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.info-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 10px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.12rem; color: var(--azure); margin-bottom: 6px; }
.info-card p { color: var(--body); font-size: .96rem; }

/* Events */
.event-list { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
.event {
  display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event__date {
  flex: 0 0 auto; width: 96px; text-align: center; background: var(--azure); color: #fff;
  border-radius: var(--radius-sm); padding: 14px 8px;
}
.event__date .m { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.event__date .d { display: block; font-family: var(--head); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.event__date .y { display:block; font-size: .72rem; opacity: .8; }
.event__body { flex: 1; }
.event__body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.event__body p { font-size: .95rem; color: var(--muted); margin: 0; }
.event__cta { flex: 0 0 auto; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; align-items: center; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: grid; place-items: center; min-height: 130px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.partner img { max-height: 78px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .3s; }
.partner:hover img { filter: grayscale(0); opacity: 1; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.gallery-filters button {
  border: 2px solid var(--line); background: #fff; color: var(--body); cursor: pointer;
  font-weight: 700; font-family: var(--font); font-size: .9rem; padding: 11px 24px; border-radius: 999px;
  transition: all .2s ease;
}
.gallery-filters button:hover { border-color: var(--gold); color: var(--azure); }
.gallery-filters button.active { background: var(--azure); border-color: var(--azure); color: #fff; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer;
  aspect-ratio: 1/1; background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: "\1F50D"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15,47,102,.55); color: #fff; font-size: 1.6rem; opacity: 0; transition: .3s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,16,35,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__counter { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #cdd7ea; font-size: .95rem; letter-spacing: .05em; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
  transition: background .2s ease;
}
.lb-btn:hover { background: var(--gold); color: var(--azure-dark); }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.4rem; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 26px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail .ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; background: rgba(23,69,143,.1);
  color: var(--azure); display: grid; place-items: center; font-size: 1.3rem;
}
.contact-detail h4 { color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.contact-detail p { color: var(--body); margin: 0; font-size: .96rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field label span { color: #d64545; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .97rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--azure); background: #fff; box-shadow: 0 0 0 4px rgba(23,69,143,.1);
}
.field input.error, .field textarea.error { border-color: #d64545; background: #fdf3f3; }
.field .err-msg { color: #d64545; font-size: .82rem; margin-top: 5px; display: none; }
.field .err-msg.show { display: block; }
.form-note { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; background: #e8f6ec; border: 1px solid #b6e0c1; color: #1e7a3d;
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; font-weight: 600;
}
.form-success.show { display: block; }
.form-success.error { background: #fdecec; border-color: #f0b4b4; color: #b02a2a; }

/* Map / captcha */
.captcha-row { display: flex; align-items: center; gap: 14px; }
.captcha-q { font-weight: 700; color: var(--azure); background: var(--bg-soft); padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line); }
.captcha-row input { max-width: 120px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--azure-dark); color: #c3d1ec; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__logo img { height: 112px; margin-bottom: 18px; }
.footer p { color: #aebdda; font-size: .94rem; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #aebdda; font-size: .94rem; }
.footer ul a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .94rem; }
.footer__contact .ico { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; text-align: center;
  font-size: .86rem; color: #8ea2c8;
}
.motto-strip {
  background: var(--gold); color: var(--azure-dark); text-align: center; font-weight: 700;
  font-family: var(--head); font-style: italic; padding: 14px; font-size: 1.05rem;
}

/* Back to top */
#backtotop {
  position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--azure-dark); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 700; box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: .3s; z-index: 900;
}
#backtotop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backtotop:hover { background: var(--gold-dark); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .section { padding: 60px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .info-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .event { flex-direction: column; text-align: center; align-items: stretch; }
  .event__date { width: auto; display: flex; gap: 8px; justify-content: center; align-items: baseline; }
  .hero { min-height: 90vh; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .hero__motto { display: none; }
}
