/* Samara Yoga */

:root {
  --sage: #577763;
  --sage-light: #6b8260;
  --cream: #fdf3eb;
  --warm-dark: #3a3028;
  --warm-black: #1a1714;
  --text: #2c2924;
  --text-light: #7a7268;
  --font-primary: 'Work Sans', sans-serif;
  --font-secondary: 'Times New Roman', Times, serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--warm-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-welcome {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.hero-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 2rem;
  border-radius: 2px;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.08);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Gallery */
.gallery {
  padding: 4rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-heading {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
  color: var(--sage);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.gallery-grid img:nth-child(1) { grid-column: 1 / 3; }
.gallery-grid img:nth-child(2) { grid-column: 3 / 5; }
.gallery-grid img:nth-child(3) { grid-column: 5 / 7; }
.gallery-grid img:nth-child(4) { grid-column: 3 / 5; }

/* Divider */
.divider {
  padding: 2rem 2rem 3.5rem;
}

.divider-heading {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  text-align: center;
  letter-spacing: 0.25em;
  color: var(--sage);
}

/* Schedule + footer */
.bottom {
  background: var(--sage);
  padding: 3rem 2rem 2.5rem;
}

.bottom-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.bottom-calendar {
  background: var(--cream);
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Calendar */
#samara-calendar {
  padding: 1.25rem;
}

.fc {
  font-family: var(--font-primary) !important;
}

.fc .fc-list-sticky .fc-list-day > * {
  background: var(--cream) !important;
}

.fc .fc-list-day-cushion {
  background: var(--cream) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  color: var(--sage) !important;
  padding: 0.75rem 1rem !important;
}

.fc .fc-list-event-time,
.fc .fc-list-event-title {
  font-family: var(--font-primary) !important;
  color: var(--text) !important;
}

.fc .fc-list-event:hover td {
  background: #f3ebe1 !important;
}

.fc .fc-list-event-dot {
  border-color: var(--sage) !important;
}

.fc .fc-list {
  border: none !important;
}

.fc .fc-list-table td,
.fc .fc-list-table th {
  border-color: #e8ddd3 !important;
}

.fc .fc-list-empty {
  background: var(--cream) !important;
  font-family: var(--font-primary) !important;
  color: var(--text-light) !important;
}

.fc .fc-list-event {
  cursor: pointer;
}

.fc .fc-list-event-title a {
  text-decoration: none !important;
}

/* Event modal */
.event-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 2rem;
}

.event-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.event-modal {
  background: var(--cream);
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.event-modal-overlay.active .event-modal {
  transform: translateY(0);
}

.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
  z-index: 1;
}

.event-modal-close:hover {
  color: var(--text);
}

.event-modal-body {
  padding: 2rem 2rem 2.5rem;
}

.event-modal-date {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.event-modal-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.event-modal-time {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8ddd3;
}

.event-modal-location {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.event-modal-location a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.event-modal-location a:hover {
  border-bottom-color: var(--sage);
}

.event-modal-image {
  margin-bottom: 1rem;
}

.event-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.event-modal-description {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.event-modal-description a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-modal::-webkit-scrollbar {
  width: 6px;
}

.event-modal::-webkit-scrollbar-track {
  background: transparent;
}

.event-modal::-webkit-scrollbar-thumb {
  background: #c4b8aa;
  border-radius: 3px;
}

.bottom-headshot-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bottom-headshot {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.bottom-links {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.bottom-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-links a:hover {
  color: #fff;
}

.bottom-heading {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  /* Gallery: 2x2 grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(3),
  .gallery-grid img:nth-child(4) {
    grid-column: auto;
  }

  .gallery {
    padding: 3rem 1.5rem 2.5rem;
  }

  .bottom-content {
    grid-template-columns: 1fr;
  }

  .bottom-headshot {
    max-height: 400px;
  }

  .bottom-links {
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
  }

  .hero {
    min-height: 85vh;
  }

  .event-modal-overlay {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    padding: 2.5rem 1rem 2rem;
  }

  .gallery-grid {
    gap: 0.75rem;
  }

  .gallery-heading {
    margin-bottom: 1.5rem;
  }

  .bottom {
    padding: 2rem 1rem 2rem;
  }

  .bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
  }

  .bottom-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .event-modal-body {
    padding: 1.5rem 1.5rem 2rem;
  }
}
