/* style.css */

/* --- palette & fonts from Eddy already loaded --- */
:root {
  --eh-gold: #cb6f10;
  --eh-dark: #1b1b1b;
  --eh-max: 1240px;
}

/* -------- base -------- */
html,
body {
  font-family: 'avenir_lt_std45_book', sans-serif;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: 'helveticaneuelight', sans-serif;
}

/* -------- header -------- */
.eh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgb(0 0 0/.1);
}

.eh-header--dark {
  background: var(--eh-dark);
}

.eh-header-inner {
  max-width: var(--eh-max);
  margin: auto;
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* brand logo swap */
.eh-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo-desktop,
.logo-mobile {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.logo-mobile {
  display: none;
}

/* -------- desktop nav -------- */
.eh-nav {
  display: flex;
  gap: 2rem;
}

.eh-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.eh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--eh-gold);
  transition: width .3s;
}

.eh-nav a:hover::after {
  width: 100%;
}

/* burger */
.eh-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.eh-burger-bar,
.eh-burger-bar::before,
.eh-burger-bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .3s;
}

.eh-burger-bar::before {
  transform: translateY(-7px);
}

.eh-burger-bar::after {
  transform: translateY(5px);
}

.eh-burger.active .eh-burger-bar {
  background: transparent;
}

.eh-burger.active .eh-burger-bar::before {
  transform: rotate(45deg);
}

.eh-burger.active .eh-burger-bar::after {
  transform: rotate(-45deg);
}

/* close-button inside mobile nav */
.eh-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

/* -------- hero -------- */
.eh-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 6rem 1rem;
  cursor: pointer;
}

.eh-hero .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.eh-hero-title {
  font-size: 2.75rem;
  margin: .5rem 0;
}

.eh-hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.eh-btn {
  display: inline-block;
  background: var(--eh-gold);
  color: #fff;
  text-decoration: none;
  padding: .85rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
}

/* -------- generic sections / footer -------- */
.eh-section {
  padding: 1rem;
  scroll-margin-top: 72px;
}

.eh-section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.eh-section iframe {
  width: 100%;
  height: 640px;
  border: none;
}

.eh-footer {
  background: #fafafa;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .9rem;
}

.eh-footer p {
  margin: 0;
}

/* -------- gallery carousel -------- */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  max-width: var(--eh-max);
  height: 450px;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
  touch-action: pan-y;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, .65);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-btn.prev::before {
  content: "‹";
}

.carousel-btn.next::before {
  content: "›";
}

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s;
  z-index: 9999;
  touch-action: none;
}

.lightbox[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.lightbox-img,
.lightbox-video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  display: none;
}

/* when no special mode, default to image */
.lightbox[aria-hidden="false"] .lightbox-img {
  display: block;
}

/* video mode override */
.lightbox.video-mode .lightbox-img {
  display: none;
}
.lightbox.video-mode .lightbox-video {
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
  transition: background .2s ease;
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, .65);
}

.lightbox-btn.prev {
  left: .75rem;
}

.lightbox-btn.next {
  right: .75rem;
}

/* --- Utilities table styling --- */
.utilities-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 2rem auto;
  font-size: 0.9rem;
}

.utilities-table th,
.utilities-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.utilities-table thead {
  background: var(--eh-gold);
}

.utilities-table thead th {
  color: #fff;
}

.utilities-table .contact-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.utilities-table .contact-list li {
  margin: 0;
}

.phone-link {
  color: inherit;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

/* desktop split */
@media (min-width: 769px) {
  #gallery,
  #utilities {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
  }
  #gallery {
    width: 60%;
  }
  #utilities {
    width: 38%;
    padding-left: 2%;
  }
}

/* responsive */
@media (max-width: 768px) {
  .eh-burger {
    display: block;
    padding: 0.75rem;
    margin: 0 -0.75rem 0 0;
    z-index: 1001;
  }
  .eh-burger-bar,
  .eh-burger-bar::before,
  .eh-burger-bar::after {
    width: 24px;
  }
  .eh-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 260px;
    background: var(--eh-dark);
    flex-direction: column;
    gap: 1rem;
    padding: 6rem 1.25rem;
    transform: translateX(100%);
    transition: .35s;
    box-shadow: -2px 0 6px rgb(0 0 0/.15);
  }
  .eh-nav.open {
    transform: none;
  }
  .eh-nav a {
    font-size: 1rem;
  }
  .eh-nav.open .eh-nav-close {
    display: block;
  }
  .gallery-carousel {
    height: 250px;
  }
  .eh-hero {
    padding: 4rem 1rem;
  }
  .eh-hero-title {
    font-size: 2rem;
  }
  #calendar iframe {
    max-width: 95%;
  }
  #gallery,
  #utilities {
    width: 100%;
    display: block;
    padding: 0;
  }
  .utilities-table {
    width: calc(100% - 2rem);
    margin: 0 auto 2rem auto;
  }
}
