/* =============================================
   Harfordian Sisters — Visual Enhancements
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&family=DM+Sans:wght@400;500&display=swap');

/* Smooth scroll for all anchor links */
html {
  scroll-behavior: smooth;
}

/* ── Header branding: flex alignment + portrait-logo fix ──────────────
   The main CSS uses inline-block + vertical-align:middle with line-height:0
   on h1/h2. That works for landscape logos but breaks with a portrait logo.
   Switching to flexbox gives reliable centering regardless of logo shape.
   ─────────────────────────────────────────────────────────────────────── */

/* 1. Flex container — vertically centers logo and headings */
.primary-header.header-style-logo-text .branding {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

/* 2. Remove the old inline-block centering trick (not needed with flex) */
.primary-header.header-style-logo-text .branding::before {
  display: none !important;
}

/* 3. Logo: size by height (portrait-safe), auto width, no distortion */
.primary-header.header-style-logo-text .branding .logo {
  display: block !important;
  flex-shrink: 0;
  width: auto !important;
  max-width: none !important;
  margin-right: 0;
  vertical-align: unset;
}
.primary-header.header-style-logo-text .branding .logo img {
  display: block;
  height: 76px;   /* slightly larger than the 70px header min-height */
  width: auto;
  max-width: none;
}

/* 4. Headings: restore proper line-heights (main CSS zeroes them) */
.primary-header.header-style-logo-text .branding .headings {
  display: block !important;
  vertical-align: unset;
}
.primary-header.header-style-logo-text .branding h1,
.primary-header.header-style-logo-text .branding h2 {
  line-height: 1.15 !important;
  margin: 0 !important;
}
.primary-header.header-style-logo-text .branding h2 {
  margin-top: 2px !important;
}

/* 5. Mobile: smaller logo on narrow screens */
@media (max-width: 967px) {
  .primary-header.header-style-logo-text .branding .logo img {
    height: 58px;
  }
}

/* ── Navigation ─────────────────────────────── */
.primary-navigation .page-listing > li > a {
  transition: background 0.25s ease, color 0.25s ease;
}

.primary-navigation .page-listing > li > a:hover {
  opacity: 0.85;
}

/* Dropdown menus — slide + fade */
.primary-navigation .page-listing li ul {
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.primary-navigation .page-listing li:hover ul,
.primary-navigation .page-listing li:focus-within ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Buttons ─────────────────────────────────── */
.post-button,
input[type="submit"].post-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.post-button:hover,
input[type="submit"].post-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
}

.post-button:active,
input[type="submit"].post-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  filter: brightness(0.97);
}

/* ── Gallery photos ──────────────────────────── */
.gallery-photo figure,
.gallery-photo .photo--outer-wrapper {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.gallery-photo:hover figure,
.gallery-photo:hover .photo--outer-wrapper {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.gallery-photo img {
  transition: filter 0.25s ease;
}

.gallery-photo:hover img {
  filter: brightness(1.06) saturate(1.1);
}

/* ── Forms ───────────────────────────────────── */
.post-email_form input[type="text"],
.post-email_form input[type="email"],
.post-email_form input[type="tel"],
.post-email_form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 5px;
}

.post-email_form input[type="text"]:focus,
.post-email_form input[type="email"]:focus,
.post-email_form input[type="tel"]:focus,
.post-email_form textarea:focus {
  outline: none;
  border-color: #4169E1;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.25);
}

/* ── Hero image sections ─────────────────────── */
.post-hero_image {
  transition: opacity 0.5s ease;
}

.post-hero_image.animated {
  opacity: 3 !important;
}

/* ── Animated posts — start invisible ───────── */
.animated {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated.animation--visible {
  opacity: 1;
  transform: none !important;
}

.animation--fade_in         { transform: translateY(20px); }
.animation--fade_in_right_big { transform: translateX(30px); }
.animation--bounce_in       { transform: scale(0.96); }

/* ── Scroll-to-top button ────────────────────── */
#hs-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ss-color-11155, #3853a4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}

#hs-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#hs-scroll-top:hover {
  background: var(--ss-color-11156, #4169E1);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────── */
.footer-container a {
  transition: opacity 0.2s ease;
}

.footer-container a:hover {
  opacity: 0.8;
}

/* ── Form success/error feedback ─────────────── */
.hs-form-success {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  margin-top: 16px;
}

.hs-form-success .hs-checkmark {
  font-size: 2.5em;
  display: block;
  margin-bottom: 10px;
}

/* ── Accessibility — better focus ring ───────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4169E1;
  outline-offset: 3px;
}

/* ── Restore background images on animated posts ── */
/* Get Involved section */
#post_9939331 .post-body {
  visibility: visible !important;
}

#post_9939331 .bg-inner {
  opacity: 1 !important;
}

/* Board members section */
#post_9939328 .post-body {
  visibility: visible !important;
}

#post_9939328 .bg-inner {
  opacity: 1 !important;
}

/* Executives section */
#post_9996754 .post-body {
  visibility: visible !important;
}

#post_9996754 .bg-inner {
  opacity: 1 !important;
}

/* ── Prevent layout shift from New Relic ────── */
body::before {
  content: '';
  display: block;
  height: 0;
}

/* ── Reunion video section card ─────────────────
   Forest green + gold palette, Cormorant Garamond display font.
   Used on Philadelphia 2022, Texas 2023, Maryland 2024, Maryland 2025.
   ─────────────────────────────────────────────── */
.reunion-section {
  --rs-bg: #FDFAF5;
  --rs-card: #FDFAF5;
  --rs-accent: #1B4332;
  --rs-gold: #D4A843;
  --rs-muted: #6b6b6b;
  --rs-warm: #C4501A;
  background: var(--rs-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}
.reunion-section *,
.reunion-section *::before,
.reunion-section *::after {
  box-sizing: border-box;
}
.reunion-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(212,168,67,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 80%, rgba(27,67,50,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.reunion-section::after {
  content: '';
  position: absolute;
  top: 40px; right: 40px;
  width: 180px; height: 180px;
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.reunion-section .rs-geo-diamond {
  position: absolute;
  bottom: 60px; left: 50px;
  width: 100px; height: 100px;
  border: 1px solid rgba(27,67,50,0.08);
  transform: rotate(45deg);
  pointer-events: none;
}
.reunion-section .rs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.reunion-section .rs-header {
  text-align: center;
  margin-bottom: 48px;
  animation: reunionFadeUp 0.8s ease forwards;
}
.reunion-section .rs-overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rs-gold);
  margin-bottom: 16px;
}
.reunion-section .rs-overline::before,
.reunion-section .rs-overline::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--rs-gold);
}
.reunion-section .rs-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 400;
  color: var(--rs-accent);
  line-height: 1.15;
  margin: 0;
}
.reunion-section .rs-header h2 em {
  color: var(--rs-warm);
  font-style: italic;
}
.reunion-section .rs-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--rs-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  animation: reunionFadeUp 0.8s 0.2s ease both;
}
.reunion-section .rs-video-side {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.reunion-section .rs-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.reunion-section .rs-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.reunion-section .rs-event-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(212,168,67,0.95);
  color: #1a1410;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 2;
}
.reunion-section .rs-text-side {
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.reunion-section .rs-text-side::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  color: rgba(212,168,67,0.08);
  line-height: 1;
  pointer-events: none;
}
.reunion-section .rs-text-side h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--rs-accent);
  margin: 0 0 6px;
  line-height: 1.25;
}
.reunion-section .rs-location {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--rs-gold);
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reunion-section .rs-location svg {
  width: 14px; height: 14px;
  fill: var(--rs-gold);
  flex-shrink: 0;
}
.reunion-section .rs-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.reunion-section .rs-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rs-gold);
  opacity: 0.4;
}
.reunion-section .rs-dots span:nth-child(2) { opacity: 0.6; }
.reunion-section .rs-dots span:nth-child(3) { opacity: 0.8; }
.reunion-section .rs-text-side p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--rs-muted);
  margin: 0 0 28px;
}
.reunion-section .rs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--rs-accent);
  color: #fff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.reunion-section .rs-btn:hover {
  background: #15352a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,67,50,0.2);
}
.reunion-section .rs-btn svg {
  width: 16px; height: 16px;
  transition: transform 0.3s ease;
}
.reunion-section .rs-btn:hover svg { transform: translateX(3px); }

@keyframes reunionFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .reunion-section { padding: 60px 0; }
  .reunion-section .rs-inner { padding: 0 20px; }
  .reunion-section .rs-card { grid-template-columns: 1fr; }
  .reunion-section .rs-header h2 { font-size: 32px; }
  .reunion-section .rs-text-side { padding: 32px 24px; }
  .reunion-section .rs-btn { align-self: stretch; text-align: center; justify-content: center; }
}
