/* =============================================
   EASTMINSTER PRESBYTERIAN CHURCH
   Main Stylesheet
   ============================================= */

/* --- CSS Variables / Design Tokens --- */
:root {
  --deep-navy: #0d1b2a;
  --navy: #1a2c42;
  --navy-mid: #1f3855;
  --gold: #c9a84c;
  --gold-light: #e4c870;
  --gold-pale: #f7edcc;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: rgba(201, 168, 76, 0.25);
  --shadow-sm: 0 2px 12px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 27, 42, 0.14);
  --shadow-lg: 0 20px 60px rgba(13, 27, 42, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

address {
  font-style: normal;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
  color: var(--deep-navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--border);
  padding: 10px 22px;
}

.btn-ghost:hover {
  background: var(--gold-pale);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep-navy);
  transform: translateY(-2px);
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-cross {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--deep-navy);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.tab-nav {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-navy);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.4);
}

.tab-icon {
  font-size: 1rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/church_real_2.png') center 30% / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 27, 42, 0.82) 0%,
    rgba(26, 44, 66, 0.75) 50%,
    rgba(13, 27, 42, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 40px 24px;
  animation: fadeInUp 0.9s ease both;
}

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

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.8;
}

/* =============================================
   WELCOME SECTION
   ============================================= */
.welcome-section {
  background: var(--white);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.welcome-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  background: var(--cream);
  padding: 0 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  height: 280px;
}

.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

.gallery-item.gallery-main {
  grid-row: span 2;
  height: 100%;
  min-height: 476px;
}

.gallery-item img,
.gallery-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.08) saturate(1.12) brightness(1.02);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-item:hover img {
  transform: translateZ(0) scale(1.05);
  filter: contrast(1.12) saturate(1.18) brightness(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 27, 42, 0.85));
  color: var(--white);
  padding: 28px 16px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =============================================
   INFO CARDS SECTION
   ============================================= */
.info-section {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.info-card.featured {
  background: linear-gradient(145deg, var(--navy), var(--deep-navy));
  border-color: var(--gold);
  color: var(--white);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: inherit;
}

.info-card.featured h3 {
  color: var(--gold-light);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  padding: 10px 14px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.church-address {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--white);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* =============================================
   MAP SECTION
   ============================================= */
.map-section {
  background: var(--cream);
}

.map-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map-section .section-lead {
  margin-bottom: 40px;
}

.map-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.map-wrapper iframe {
  display: block;
}

.directions-bar {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* =============================================
   DENOMINATION SECTION
   ============================================= */
.denomination-section {
  background: var(--white);
  padding: 56px 0 80px;
}

.denom-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--gold-pale), #fff);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.denom-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.denom-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.denom-content p {
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* =============================================
   EVENTS / CALENDAR TAB
   ============================================= */
.events-hero-section {
  background: var(--cream);
}

.events-hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.events-hero-section .section-lead {
  margin-bottom: 36px;
}

/* Appointment Banner */
.appointment-bar {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-md);
  padding: 28px 36px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.appointment-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
}

.appointment-text h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}

.appointment-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}

/* Calendar Wrapper */
.calendar-wrapper {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 48px;
  text-align: left;
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.calendar-frame-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.calendar-frame-wrap iframe {
  display: block;
  width: 100%;
  min-width: 0;
}

.calendar-note {
  padding: 14px 24px;
  background: var(--gold-pale);
  color: var(--text-mid);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Appointment Cards */
.appointment-details-section {
  width: 100%;
  text-align: left;
}

.appt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.appt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.appt-card-icon {
  font-size: 2rem;
}

.appt-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
}

.appt-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.appt-card .btn-outline-sm {
  align-self: flex-start;
  margin-top: 8px;
}

/* =============================================
   TAB PANELS
   ============================================= */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.45s ease both;
}

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--deep-navy);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-cross {
  font-size: 1.2rem;
}

.footer-church-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

.footer-pcusa {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* ── Tablet (≤960px) ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .info-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .appt-cards-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .denom-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  /* Remove old static gallery refs */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.gallery-main { grid-row: span 1; height: 280px; }
  .gallery-item { height: 240px; }
}

/* ── Mobile (≤680px) ─────────────────────────────────────────────── */
@media (max-width: 680px) {

  /* --- Header --- */
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }
  .tab-nav { width: 100%; justify-content: center; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
  .logo-name { font-size: 1rem; }

  /* --- Hero --- */
  .hero { min-height: 70vh; }
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-content { padding: 24px 16px; }

  /* --- Sections --- */
  .section { padding: 44px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.6rem; }
  .section-lead { font-size: 0.95rem; }

  /* --- Info Cards --- */
  .info-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }
  .info-card { padding: 24px 18px; }
  .info-list li { font-size: 0.88rem; }

  /* --- Gallery Carousel --- */
  .gallery-carousel-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 80px;
    height: auto;
    gap: 10px;
  }
  .gallery-thumbs {
    flex-direction: row;
    height: 80px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gallery-thumb { width: 110px; height: 80px; flex-shrink: 0; }

  /* --- Denomination Card --- */
  .denom-card { padding: 24px 18px; gap: 16px; }

  /* --- Appointment Bar --- */
  .appointment-bar { padding: 20px 18px; }
  .appointment-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .appt-btn-wrap { width: 100%; }
  .appt-btn-wrap .btn { width: 100%; justify-content: center; }
  .format-disclaimer { text-align: left; }

  /* --- Booking Notice --- */
  .booking-notice { flex-direction: column; gap: 8px; }

  /* --- Appointment Cards --- */
  .appt-cards-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 14px;
  }
  .appt-card { padding: 22px 18px; }

  /* --- Calendar Wrapper --- */
  .calendar-wrapper { border-radius: var(--radius-sm); margin-left: 0; margin-right: 0; }
  .calendar-frame-wrap { width: 100%; overflow: hidden; }
  .calendar-frame-wrap iframe {
    height: 480px;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* --- Map --- */
  .map-wrapper iframe { height: 300px; }

  /* --- Footer --- */
  .site-footer { padding: 0; }
  .footer-inner {
    gap: 24px;
    padding: 40px 16px;
    width: 100%;
  }
  .footer-col { text-align: center; }
  .footer-bottom { padding: 16px; }
  .footer-bottom p { font-size: 0.78rem; }
}

/* ── Small phones (≤400px) ───────────────────────────────────────── */
@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .gallery-carousel-wrap { grid-template-rows: 220px 75px; }
}


/* ── Booking Notice ────────────────────────────────────────────────── */
.booking-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  margin-top: 10px;
  padding-top: 12px;
  text-align: left;
}

.booking-notice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-notice-text {
  color: #e8e2d4;
  font-size: 0.95rem;
  line-height: 1.7;
}

.booking-notice-text strong {
  color: var(--gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.notice-email-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold);
  font-size: 0.88rem;
  text-decoration: underline;
  word-break: break-all;
}

.notice-email-link:hover {
  color: #e4c870;
}

/* ── Calendar Format Box ────────────────────────────────────────────── */
.calendar-note {
  padding: 14px 24px 18px;
  background: var(--gold-pale);
  border-top: 1px solid var(--border);
}

.calendar-note p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.calendar-format-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
}

.format-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.format-code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--deep-navy);
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  word-break: break-all;
}

.format-example {
  font-size: 0.8rem;
  color: var(--text-mid);
}

.format-inline {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: rgba(201,168,76,0.12);
  color: var(--navy);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.appt-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
}

.format-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}

/* ── Gallery Carousel ───────────────────────────────────────────────── */
.gallery-carousel-wrap {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  height: 480px;
}
.gallery-featured {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  height: 100%;
}
.gallery-featured > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
  filter: contrast(1.06) saturate(1.1) brightness(1.01);
}
.gallery-featured-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,0.88));
  color: #fff;
  padding: 28px 20px 14px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(13,27,42,0.6); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4); border-radius: 50%;
  width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 3; backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: var(--gold); color: var(--navy); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: var(--transition); border: none;
}
.gallery-dot.active { background: var(--gold); transform: scale(1.3); }
.gallery-thumbs {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; height: 100%;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.gallery-thumb {
  flex-shrink: 0; height: 106px;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); opacity: 0.65;
  box-shadow: var(--shadow-sm);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; transform: scale(1.03); }
.gallery-thumb.active {
  border-color: var(--gold); opacity: 1;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.3);
}
@media (max-width: 768px) {
  .gallery-carousel-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
    height: auto;
  }
  .gallery-thumbs {
    flex-direction: row; height: 80px;
    overflow-x: auto; overflow-y: hidden;
  }
  .gallery-thumb { width: 120px; height: 80px; flex-shrink: 0; }
}
