/*
 * visit.css
 * Styles specific to the /visit page.
 * Depends on styles.css being loaded first for design tokens
 * (--ink, --cream, --gold, --gold-deep, --text-dark, --text-muted, --radius, .container, .btn, .eyebrow, etc.).
 * Load order in <head>: styles.css, then visit.css.
 */

/* =========================================================
   VISIT PAGE
   ========================================================= */

/* ---- compact page hero ---- */
.page-hero {
  position: relative;
  height: 46vh;
  min-height: 340px;
  max-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink) var(--hero-img, none) center / cover no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 7, 0.55) 0%,
    rgba(10, 9, 7, 0.35) 40%,
    rgba(10, 9, 7, 0.82) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 44px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s ease;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.6;
}
.breadcrumb span {
  color: var(--gold);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  max-width: 640px;
}
.page-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 480px;
}

/* ---- section heading (shared) ---- */
.section-head {
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin: 10px 0 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 480px;
}

/* ---- service times (row list, not cards) ---- */
.service-times {
  padding: 100px 0 90px;
}
.service-times .section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.service-times .section-head h2 {
  font-size: 1.6rem;
}
.service-times .section-head p {
  font-size: 0.86rem;
  margin: 0 auto;
}
.service-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(20, 18, 14, 0.12);
}
.service-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(20, 18, 14, 0.12);
  transition: background 0.25s ease;
}
.service-row:hover {
  background: rgba(217, 164, 65, 0.06);
}
.service-row-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.service-row-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  color: var(--gold-deep);
  font-size: 0.92rem;
}
.service-row-main {
  flex: 1;
  min-width: 0;
}
.service-row-cadence {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.service-row-main h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.service-row-time {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.service-row-time i {
  color: var(--gold-deep);
  font-size: 0.74rem;
}
.service-row-cal {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 18, 14, 0.2);
  background: transparent;
  color: var(--text-dark);
  font-size: 0.86rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.service-row-cal:hover {
  border-color: var(--gold-deep);
  background: var(--gold);
  color: #211a0c;
}

@media (max-width: 720px) {
  .service-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 4px;
  }
  .service-row-head {
    gap: 12px;
  }
  .service-row-icon {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .service-row-cadence {
    font-size: 0.58rem;
  }
  .service-row-main h3 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .service-row-time {
    padding-left: 48px;
    font-size: 0.82rem;
  }
  .service-row-cal {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .service-row-head {
    gap: 10px;
  }
  .service-row-icon {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  .service-row-main h3 {
    font-size: 0.94rem;
  }
  .service-row-time {
    padding-left: 42px;
    font-size: 0.78rem;
  }
  .service-row-cal {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
}

/* ---- upcoming programs ---- */
.programs {
  background: var(--cream-2);
  padding: 100px 0;
}
.programs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.program-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(20, 18, 14, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.program-card:hover {
  transform: translateY(-4px);
}
.program-banner {
  position: relative;
  aspect-ratio: 21/8;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
}
.program-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0) 45%, rgba(10, 9, 7, 0.6) 100%);
}
.program-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 7px;
  padding: 5px 8px;
  text-align: center;
  min-width: 44px;
}
.program-date-badge .month {
  display: block;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.program-date-badge .day {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
}
.program-category {
  position: absolute;
  bottom: 9px;
  left: 10px;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(217, 164, 65, 0.9);
  padding: 4px 9px;
  border-radius: 999px;
}
.program-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.program-body p.program-desc {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.program-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.program-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dark);
}
.program-meta i {
  width: 14px;
  color: var(--gold-deep);
  font-size: 0.76rem;
}
.program-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.program-actions .btn {
  flex: 1;
  font-size: 0.68rem;
  padding: 10px 14px;
}
.btn-cal {
  background: transparent;
  border-color: rgba(20, 18, 14, 0.2);
  color: var(--text-dark);
}
.btn-cal:hover {
  border-color: var(--text-dark);
  background: rgba(20, 18, 14, 0.05);
}
.programs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(20, 18, 14, 0.18);
  border-radius: var(--radius);
}

/* ---- getting here / map ---- */
.visit-location {
  padding: 100px 0;
}
.visit-location .container {
  display: block;
}
.visit-location-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}
.visit-location-head h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin: 10px 0 12px;
}
.visit-location-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto;
}
.visit-map {
  position: relative;
  width: 100%;
  height: clamp(240px, 30vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(30, 25, 10, 0.4);
  background: var(--cream-2);
}
.visit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.visit-map-card {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 20px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px -24px rgba(20, 18, 14, 0.45);
}
.visit-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.visit-address i {
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin-top: 3px;
}
.visit-address strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.visit-address span {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.visit-map-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.7rem;
  padding: 10px 14px;
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-hero {
    height: 40vh;
    min-height: 260px;
    max-height: 360px;
  }
  .page-hero-content {
    padding-bottom: 26px;
  }
  .breadcrumb {
    font-size: 0.66rem;
    gap: 6px;
    margin-bottom: 10px;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    max-width: 100%;
  }
  .page-hero p {
    margin-top: 10px;
    font-size: 0.85rem;
    max-width: 100%;
  }
  .service-times,
  .programs,
  .visit-location {
    padding: 70px 0;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .programs-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 1.5rem;
  }
  .visit-map {
    height: 320px;
  }
  .visit-map-card {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
    border-radius: 14px 14px 0 0;
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  .page-hero {
    height: 34vh;
    min-height: 220px;
    max-height: 300px;
  }
  .page-hero-content {
    padding-bottom: 18px;
  }
  .breadcrumb {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }
  .page-hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.6rem);
  }
  .page-hero p {
    font-size: 0.78rem;
    margin-top: 8px;
  }
}
/* =========================================================
   ADD TO CALENDAR — blurred overlay modal
   ========================================================= */
body.cal-modal-locked {
  overflow: hidden;
}

.cal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 20px);
  background: rgba(10, 9, 7, 0.45);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cal-modal-overlay[hidden] {
  display: none;
}
.cal-modal-overlay.is-open {
  opacity: 1;
}

.cal-modal-panel {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: var(--white, #fff);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 30px 70px -28px rgba(20, 18, 14, 0.5);
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    opacity 0.2s ease;
}
.cal-modal-overlay.is-open .cal-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--cream-2);
  color: var(--text-dark);
  font-size: 0.66rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease;
}
.cal-modal-close:hover {
  background: var(--gold);
  color: #211a0c;
}

.cal-modal-eyebrow {
  display: block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.cal-modal-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 22px;
  margin-bottom: 12px;
}

.cal-modal-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cal-modal-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(20, 18, 14, 0.1);
  background: transparent;
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    transform 0.14s ease;
}
.cal-modal-option:hover {
  background: rgba(217, 164, 65, 0.1);
  border-color: var(--gold-deep);
  transform: translateX(2px);
}
.cal-modal-option-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  color: var(--gold-deep);
  font-size: 0.68rem;
}
.cal-modal-option span:nth-child(2) {
  flex: 1;
}
.cal-modal-option-chevron {
  flex: none;
  font-size: 0.54rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- fully fluid across breakpoints ---- */
@media (max-width: 480px) {
  .cal-modal-overlay {
    padding: 14px;
    align-items: flex-end;
  }
  .cal-modal-panel {
    max-width: 100%;
    padding: 16px 14px 12px;
    border-radius: 16px 16px 12px 12px;
  }
}

@media (max-width: 360px) {
  .cal-modal-panel {
    padding: 14px 12px 10px;
  }
  .cal-modal-title {
    font-size: 0.86rem;
  }
  .cal-modal-option {
    padding: 6px 8px;
    font-size: 0.68rem;
  }
  .cal-modal-option-icon {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }
}

@media (min-width: 481px) and (max-width: 720px) {
  .cal-modal-panel {
    max-width: 320px;
  }
}   