/* ===== Reno Horological Society — Custom CSS ===== */
/* Overrides and extensions for book-landing-hugo-theme  */

/* ===== Hero Section: Landscape Image Reflow ===== */
/*
 * The theme's .hero-content uses a 2-column grid (1fr 1fr) designed for
 * a portrait book cover on the right. Our hero image is a landscape
 * clubhouse photo, so we reflow to a stacked column layout.
 *
 * Actual class names from theme hero.html:
 *   .hero-content  — the grid wrapper
 *   .hero-text     — left column (title, subtitle, description, buttons)
 *   .hero-image    — right column (img tag)
 */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  /* Override the theme's 2-column grid */
  grid-template-columns: unset;
}

.hero-text {
  max-width: 720px;
  text-align: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(36, 52, 77, 0.2);
}

/* Center the hero buttons */
.hero-buttons {
  justify-content: center;
}

/* ===== RHS Brand Color Overrides ===== */
/* Derived from RHS logo: deep navy primary, burgundy accent */
:root {
  --primary-color: #24344D;      /* Deep navy — main brand color */
  --primary-dark: #1F2E45;       /* Darker navy — hover/active states */
  --secondary-color: #8A4A4A;    /* Burgundy — accent buttons and CTAs */
  --accent-color: #7C8591;       /* Steel gray — subtle UI accents */
  --background-alt: #F2F3ED;
  --background-dark: #E8E9E3;
  --border-color: #C8C9C3;
}

/* ===== Responsive: Tablet (768px) ===== */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .hero-image img {
    max-height: 480px;
  }
}

/* ===== Responsive: Desktop (1200px) ===== */
@media (min-width: 1200px) {
  .hero-image img {
    max-height: 500px;
  }
}

/* ===== Responsive: Mobile (480px) ===== */
@media (max-width: 480px) {
  .hero-image img {
    max-height: 260px;
    border-radius: 8px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Watch Gallery Carousel: Aspect Ratio Fix ===== */
.book-cover-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.book-cover-wrapper img,
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Events Section ===== */
.events-section {
  padding: 80px 0;
  background: var(--background-alt, #f8f9fa);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color, #24344D);
  margin-bottom: 0.75rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.event-location {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.event-location i,
.event-meta i {
  margin-right: 4px;
  color: var(--secondary-color, #8A4A4A);
}

.event-description {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

/* ===== Sponsors Bar ===== */
.sponsors-bar {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.sponsors-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.sponsors-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.sponsor-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ===== Contact Section ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}
.contact-item i {
  color: var(--secondary-color, #8A4A4A);
  font-size: 1.1rem;
}
