@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --esvrm-blue: #006E8A;
  --esvrm-dark: #292929;
  --esvrm-text: #3f4650;
  --esvrm-light: #f4f7f8;
  --esvrm-soft-blue: #e8f4f7;
  --white: #ffffff;
  --line: #d9dee2;
  --shadow: 0 26px 55px rgba(41, 41, 41, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--esvrm-dark);
  background: #ffffff;
}

.esv-header {
  height: 84px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  align-items: center;
  padding: 0 clamp(24px, 13vw, 300px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Poppins", sans-serif;
  font-size: 13.9541px;
  font-weight: 500;
  text-transform: uppercase;
}

.main-nav a {
  color: rgb(42, 42, 42);
  text-decoration: none;
  padding: 10px 9.963px;
  line-height: 16.7449px;
  display: block;
}

.main-nav a:hover,
.phone-link:hover {
  color: var(--esvrm-blue);
}

.nav-left {
  justify-content: flex-end;
  padding-right: 40px;
}
.nav-right {
  justify-content: flex-start;
  padding-left: 40px;
}

.center-logo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 380px;
  height: 140px;
  transform: translateX(-50%);
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  z-index: 3;
  overflow: visible;
}

.center-logo img {
  width: 240px;
  height: auto;
}

.main-nav a {
  color: #4a4a4a;
}

.nav-item {
  position: relative;
  padding: 16px 0;
}


.chev {
  font-size: 9px;
  color: rgb(42, 42, 42);
  margin-left: 3px;
  position: relative;
  top: -1px;
}

.dropdown,
.submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  position: absolute;
  top: 69px;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  border-top: 3px solid var(--esvrm-blue);
  z-index: 120;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.dropdown a,
.dropdown-row > a,
.submenu a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  color: var(--esvrm-dark);
  font-size: 14px;
  font-weight: 1200;
  line-height: 1.25;
  text-transform: uppercase;
  border-bottom: 1px solid #eeeeee;
}

.has-dropdown:hover > .dropdown,
.dropdown-row.has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-row {
  position: relative;
}

.submenu {
  top: -3px;
  left: 100%;
}

.phone-link {
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.divider {
  width: 1px;
  height: 26px;
  background: #cccccc;
}

.icon-link svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: var(--esvrm-dark);
}

.icon-link:hover svg {
  fill: var(--esvrm-blue);
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.book-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--esvrm-blue);
  color: var(--white);
  background: var(--esvrm-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
  transition: all 0.25s ease; /* IMPORTANT */
}

.book-btn:hover {
  background: #005a70;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 110, 138, 0.3);
}

.outline-btn {
  color: var(--esvrm-blue);
  background: var(--white);
}

.outline-btn:hover {
  background: var(--esvrm-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 110, 138, 0.25);
}

.book-btn,
.outline-btn {
  cursor: pointer;
}

main {
  max-width: 1180px;
  margin: 0 auto 42px;
  padding: 0 20px;
}

.hero-slider-section {
  position: relative;
  margin: 0 calc(50% - 50vw) 42px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to bottom, rgba(0,110,138,.14), rgba(255,255,255,.92)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  overflow: hidden;
}

.hero-slider-section::before,
.hero-slider-section::after {
  content: "";
  position: absolute;
  top: 88px;
  bottom: 88px;
  width: 140px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.hero-slider-section::before { left: calc(50% - 650px); }
.hero-slider-section::after { right: calc(50% - 650px); }

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1025px, calc(100vw - 110px));
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 50px 60px;
}

.hero-card {
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 40px;
  align-items: center;
  min-height: 330px;
}

.hero-image {
  width: 100%;
  height: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.hero-copy h1 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--esvrm-dark);
  font-weight: 500;
}

.hero-copy .event-date {
  color: var(--esvrm-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.hero-copy p {
  color: var(--esvrm-text);
  font-size: 17px;
  line-height: 1.58;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 54px;
  height: 90px;
  border: 0;
  background: transparent;
  color: #8c9298;
  font-size: 76px;
  font-weight: 200;
  line-height: .8;
  cursor: pointer;
}

.hero-arrow:hover { color: var(--esvrm-blue); }
.hero-arrow-left { left: calc(50% - 560px); }
.hero-arrow-right { right: calc(50% - 560px); }

.event-section {
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(41,41,41,.06);
}

.section-title-row,
.calendar-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 12px 16px;
  background: var(--esvrm-soft-blue);
}

.section-title-row h2,
.calendar-header h2 {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--esvrm-blue);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.event-card {
  min-height: 285px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.event-card:last-child { border-right: 0; }

.event-card img {
  width: 100%;
  height: 270px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, opacity .25s ease;
}

.event-card:hover img {
  transform: scale(1.05);
  opacity: .82;
}

.event-card h3 {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
  color: var(--esvrm-dark);
}

.calendar-header {
  justify-content: space-between;
  background: var(--esvrm-blue);
}

.calendar-header h2 { color: var(--white); }

.month-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 38px;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 700;
  padding: 12px 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--esvrm-blue);
}

.calendar-weekdays span:last-child { border-right: 0; }

.calendar-day {
  min-height: 105px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.calendar-day:hover {
  transform: scale(1.04);
  z-index: 2;
  background: var(--esvrm-soft-blue);
  box-shadow: 0 10px 25px rgba(0,0,0,.13);
}

.calendar-day:nth-child(7n) { border-right: 0; }

.day-number {
  font-size: 12px;
  font-weight: 700;
  opacity: .75;
}

.calendar-event {
  display: block;
  width: calc(100% + 14px);
  margin-left: -7px;
  margin-top: 6px;
  padding: 5px;
  border: 0;
  background: var(--esvrm-blue);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  border-radius: 0;
}
.calendar-event:hover {
  background: #005a70;
}

.calendar-day.empty { background: #f8f8f8; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(41,41,41,.68);
  padding: 22px;
  align-items: center;
  justify-content: center;
}

.modal.show { display: flex; }

.modal-panel {
  background: var(--white);
  width: min(680px, 96vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--esvrm-dark);
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 18px;
  display: none;
}

.modal-panel h2 {
  text-transform: uppercase;
  color: var(--esvrm-blue);
  font-size: 22px;
  margin-bottom: 16px;
}

.modal-date {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.modal-panel p {
  line-height: 1.55;
  color: var(--esvrm-text);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.esv-footer {
  background: #ffffff;
  color: #292929;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.esv-footer img {
  max-width: 280px;
  width: 80%;
  margin: 0 auto 20px;  /* KEY FIX */
  display: block;
}

.esv-footer p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #4a4a4a;
}

.esv-footer a {
  color: #006E8A;
  font-weight: 600;
  text-decoration: none;
}

.esv-footer a:hover {
  text-decoration: underline;
}

.footer-top {
  max-width: 980px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 45px;
  align-items: center;
}

.footer-top span {
  height: 1px;
  background: rgba(255,255,255,.35);
}

.footer-top img {
  max-width: 360px;
  width: 100%;
  filter: brightness(0) invert(1);
  margin: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 70px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 25px;
  margin: 0 0 18px;
}

.footer-col p,
.footer-col a {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.45;
}

.footer-col a {
  display: block;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-center {
  text-align: center;
}

.footer-form {
  display: flex;
  justify-content: center;
  margin: 18px 0 35px;
}

.footer-form input {
  background: transparent;
  border: 2px solid #00a6c8;
  border-right: 0;
  padding: 14px 16px;
  color: #ffffff;
  min-width: 230px;
  font-size: 15px;
}

.footer-form button {
  border: 2px solid #00a6c8;
  background: #00a6c8;
  color: #ffffff;
  padding: 14px 24px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-socials a {
  width: 45px;
  height: 45px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 22px;
}

.footer-note {
  max-width: 900px;
  margin: 35px auto 0;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top span {
    display: none;
  }

  .footer-form {
    flex-direction: column;
  }

  .footer-form input {
    border-right: 2px solid #00a6c8;
  }
}

@media (max-width: 1400px) {
  .esv-header {
  height: 84px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 380px 1fr; /* increase center space */
  align-items: center;
  padding: 0 80px; /* more breathing room */
  position: sticky;
  top: 0;
  z-index: 100;
}

  .main-nav {
    gap: 14px;
    font-size: 13px;
  }

  .center-logo {
    width: 300px;
    height: 100px;
  }

  .center-logo img {
    width: 270px;
    height: auto;
    display: block;
  }
}

@media (max-width: 1100px) {
  .esv-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .main-nav { display: none; }

  .center-logo {
    position: static;
    transform: none;
    justify-self: start;
    clip-path: none;
    width: auto;
    height: 72px;
    padding: 6px 0;
  }

  .center-logo img { width: 210px; }

  .mobile-menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    font-size: 32px;
    color: #292929;
    cursor: pointer;
  }

  .mobile-menu {
    display: none;
    position: sticky;
    top: 72px;
    z-index: 99;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }

  .mobile-menu.open { display: grid; }

  .mobile-menu a {
    padding: 15px 22px;
    color: #292929;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
  }
}

@media (max-width: 980px) {
  .hero-shell {
    width: min(820px, calc(100vw - 56px));
    padding: 36px;
  }

  .hero-card { grid-template-columns: 1fr; }

  .hero-image { height: 310px; }

  .hero-arrow-left { left: 10px; }
  .hero-arrow-right { right: 10px; }

  .event-grid { grid-template-columns: repeat(2, 1fr); }

  .event-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 560px) {
  main { padding: 0; }

  .hero-slider-section {
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    padding: 28px 0;
  }

  .hero-shell {
    width: calc(100vw - 34px);
    padding: 22px;
  }

  .hero-copy h1 { font-size: 32px; }

  .hero-copy p { font-size: 15px; }

  .hero-arrow {
    font-size: 54px;
    width: 36px;
  }

  .hero-image { height: 230px; }

  .event-grid { grid-template-columns: 1fr; }

  .event-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calendar-day {
    min-height: 72px;
    padding: 4px;
  }

  .calendar-weekdays span { font-size: 10px; }
}
