/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; }

/* Header & Nav */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed; top: 0; width: 100%; z-index: 1000;
}
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; max-width: 1200px; margin: 0 auto; height: 100px;
}
.logo img { height: 100px; width: auto; object-fit: contain; }
.nav-links a {
  text-decoration: none; color: #2c3e50; margin-left: 2rem; font-weight: 500;
  transition: color .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #3498db; }
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: #2c3e50; margin: 5px 0; transition: .3s; }

/* Layout */
main { padding-top: 75px; }

/* Hero */
.hero {
  position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 1rem; overflow: hidden;
}
#background-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(44,62,80,.1), rgba(44,62,80,.65));
  z-index: -1;
}
.hero-content { max-width: 800px; z-index: 1; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 4rem; margin-bottom: 1rem; }
.hero p { font-size: 1.7rem; margin-bottom: 2rem; }
.cta-button {
  display: inline-block; padding: 1rem 2rem; background: #3498db; color: #fff;
  text-decoration: none; border-radius: 5px; transition: background-color .3s ease;
}
.cta-button:hover { background: #2980b9; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem; padding: 5rem 5%; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  text-align: center; padding: 2rem; border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.1); transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2.5rem; color: #3498db; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 1rem; color: #2c3e50; }
.feature-card a { display: inline-block; margin-top: 1rem; color: #3498db; text-decoration: none; font-weight: 500; }

/* Footer */
footer { background: #2c3e50; color: #fff; padding: 3rem 5% 1rem; }
.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.footer-section h3 { margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.footer-section a {
  display: block; color: #fff; text-decoration: none; margin-bottom: .5rem;
  opacity: .8; transition: opacity .3s ease;
}
.footer-section a:hover { opacity: 1; }
.social-links { display: flex; gap: 1rem; }
.social-links a { font-size: 1.5rem; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,.1);
  }
  .nav-links.active { display: flex; flex-direction: column; }
  .nav-links a { margin: .5rem 0; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.5rem; }
}

/* Video tweaks */
#background-video { pointer-events: none; }
video::-webkit-media-controls-picture-in-picture-button { display: none; }
.hero-overlay { pointer-events: auto; }

/* Chapter intro */
.chapter-intro { background: #fff; padding-block: 3.5rem 1rem; }
.chapter-intro__inner { max-width: 900px; margin: 0 auto; text-align: left; }
.chapter-intro h2 {
  font-family: inherit; font-weight: 700; font-size: 2rem; line-height: 1.2;
  margin-bottom: 1rem; color: #2c3e50;
}
.chapter-intro .lead { font-size: 1.125rem; margin-bottom: 1rem; }
.chapter-intro p { margin-bottom: 1rem; color: #333; }
@media (max-width: 768px) {
  .chapter-intro { padding: 2.5rem 1.25rem; }
  .chapter-intro h2 { font-size: 1.6rem; }
}

/* Gallery */
.gallery { padding: 3rem 0; background: #fff; }
.gallery__inner { position: relative; max-width: none; width: 100vw; margin: 0 calc(50% - 50vw); }
.gallery__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px; padding-inline: 25px; border-radius: 12px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  position: relative; flex: 0 0 auto; height: clamp(180px, 28vw, 240px);
  border-radius: 12px; overflow: hidden; scroll-snap-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); background: #f3f5f7;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Circle buttons with exact text centering */
.gallery__btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:48px; height:48px; border-radius:999px;
  display:block; text-align:center;
  line-height:48px;          /* <- same as height = perfect vertical center */
  padding:0;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  cursor:pointer;
  font-size:35px;            /* arrow size */
}

/* tiny optical nudge; adjust to taste */
.gallery__btn > .arrow{
  display:inline-block;
  transform: translateY(-3px);  /* try -2px if still a hair low */
}

.gallery__btn--prev{ left:20px; }
.gallery__btn--next{ right:20px; }
.gallery__btn:hover{ background:#f8f9fb; }
@media (prefers-reduced-motion: reduce) { .gallery__track { scroll-behavior: auto; } }

/* A11y utility */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Safari-safe gallery sizing */
.gallery__slide{
  /* give the flex item a real width */
  flex: 0 0 clamp(260px, 40vw, 360px);
  width: clamp(260px, 40vw, 360px);   /* belt + suspenders for Safari */
  /* and control height via aspect ratio */
  aspect-ratio: 4 / 3;
  height: auto !important;            /* override the old height clamp */
}

/* keep images filling the card */
.gallery__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exec-blurb {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.exec-section {
    max-width: 1200px;   /* control content width */
    margin-inline: auto; /* center horizontally */
    padding: 3rem 1rem;  /* breathing room */
}

.exec-title {
    text-align: center;
    margin: 0 0 2rem;
}


/* Exec grid layout */

:root {
    /* Tweak this to change card/image size */
    --exec-card-min: 300px; /* try 280–360px */
}

.exec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--exec-card-min), var(--exec-card-min)));
    gap: 1.75rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
/*@media (min-width: 640px) {
    .exec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .exec-grid { grid-template-columns: repeat(3, 1fr); }
}
*/
/* Card & image sizing/cropping */
.exec-card { /* optional: ensure <li> acts like a block card */ }

.exec-figure {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    aspect-ratio: 5 / 6;                  /* consistent portrait shape */
}

.exec-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;                     /* crop to fill the frame */
    object-position: center;               /* center faces; tweak if needed */
    transition: transform 0.6s ease;
}

/* Hover zoom (optional, looks nice) */
.exec-card:hover .exec-figure img,
.exec-card:focus-within .exec-figure img {
/*    transform: scale(1.06);*/
}


/* Caption overlay you already have should remain */
.exec-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.75) 65%);
    opacity: 0;
/*    transform: translateY(10px);*/
/*    transition: opacity 0.35s ease, transform 0.35s ease;*/
    transition: opacity 0.35s ease;
/*    top: auto;                     */
/*    max-height: 100%;                 */
    pointer-events: none;


}
.exec-card:hover .exec-caption,
.exec-card:focus-within .exec-caption,
.exec-card.open .exec-caption {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;            /* <- makes the overlay scrollable */

}

.exec-figure .exec-caption {
  font-size: 0.8rem;      /* try 0.85–0.95rem */
  line-height: 1.35;
}

.exec-caption .exec-name {
  font-size: 1rem;
}

.events-calendar {
  text-align: center;
  margin-top: 30px;
}


.lead.lead--emph {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  font-weight: 700;
  font-style: italic;
}

.features[aria-label="Contact options"] {
  padding-top: 0;
  padding-bottom: 3rem;
}

.feature-card .social-links {
  display: flex;              /* you already have flex—this just reaffirms it */
  justify-content: center;    /* horizontally center the icons */
  align-items: center;        /* vertical centering if you size the buttons */
  gap: 0.75rem;               /* spacing between icons */
}

.feature-card--email a[href^="mailto:"] {
  font-size: 1.15rem;
  font-weight: 700;
}

.obvious-link {
  color: #3498db;              /* your accent color */
  text-decoration: underline;  /* always underline */
  font-weight: 700;            /* bold */
  text-underline-offset: 3px;  /* nicer underline */
}
.obvious-link:hover { text-decoration-thickness: 3px; }

/* Ensure the dropdown anchors to the bar */
header nav { position: relative; }

/* DESKTOP (>=769px): show inline links exactly as before; hide hamburger */
@media (min-width: 769px) {
  .nav-links {
    display: block;            /* keep your original inline flow */
    position: static;          /* undo the mobile absolute dropdown */
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  /* restore your original spacing & prevent wrapping */
  .nav-links a { 
    margin-left: 2rem;         /* your old spacing */
    white-space: nowrap;       /* stop words from breaking to a new line */
  }
  .nav-links a:first-child { margin-left: 0; }

  .hamburger { display: none; }  /* only mobile shows hamburger */
}

/* MOBILE (<=768px): hide links until toggled; show hamburger */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    z-index: 1001;
  }
  .nav-links.active { display: block; }
  .nav-links a { display: block; padding: .35rem 0; margin: 0; } /* comfy vertical list */

  .hamburger { display: block; cursor: pointer; background: none; border: 0; padding: .25rem; }
  .hamburger span {
    display: block; width: 25px; height: 3px; background: #2c3e50; margin: 5px 0; transition: .3s;
  }
}

/* Optional: animate hamburger to X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* Center the calendar and control widths */
.events-calendar {
  text-align: center;
  margin-top: 30px;          /* push below fixed header */
}
/*.events-calendar .calendar-desktop,
.events-calendar .calendar-mobile {
  width: min(100%, 900px);
  margin: 0 auto;
}
*/
/* Show desktop calendar by default; hide mobile one */
.calendar-desktop { display: block; }
.calendar-mobile  { display: none; }

/* Only on mobile, swap them */
@media (max-width: 768px) {
  .calendar-desktop { display: none; }
  .calendar-mobile  { display: block; }
  /* optional: make the mobile iframe a bit shorter */
  .calendar-mobile iframe { height: 520px; }
}


/* default: desktop/laptop */
.exec-hint .hint-hover { display: inline; }
.exec-hint .hint-tap   { display: none; }

/* on touch/mobile devices */
@media (hover: none), (pointer: coarse) {
  .exec-hint .hint-hover { display: none; }
  .exec-hint .hint-tap   { display: inline; }
}




