/* ============================================
   THE LITERARY ROUNDTABLE — index.css
   Home page specific styles
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height — fixes iOS Safari address bar */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 15s ease-out forwards;
  filter: brightness(0.4);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content {
  position: relative; z-index: 1; width: 100%;
  padding-top: calc(var(--navbar-h) + 5rem);
  padding-bottom: 14rem; /* space for newspaper overlap */
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.9;
}
.hero-btns { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ============================================
   NEWSPAPER FEATURE
   ============================================ */
.news-feature {
  background: var(--section); border: 1px solid var(--border);
  border-top: 2px solid var(--accent); border-radius: var(--radius-lg);
  padding: 3rem; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.news-label {
  display: block; text-align: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
}
/* AFTER */
.news-frame {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px; background: #000;
  border-radius: var(--radius); overflow: hidden;
  /* max-height removed — it was clipping the image */
}
.news-frame img {
  width: 100%;
  height: auto;          /* overrides global height:100% so image sets its own height */
  object-fit: unset;     /* cancels global object-fit:cover which was cropping it */
  filter: grayscale(40%) contrast(1.1);
  opacity: 0.8;
  transition: all 0.8s var(--ease);
}
.news-frame:hover img { filter: grayscale(0%) contrast(1); opacity: 1; transform: scale(1.02); }

/* ============================================
   CORE OBJECTIVES
   ============================================ */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.objective-card {
  background: var(--card); border: 1px solid var(--border);
  border-top: 2px solid rgba(212,175,55,0.5);
  padding: 2.5rem 1.5rem; border-radius: var(--radius);
  transition: all var(--transition);
}
.objective-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.6); border-top-color: var(--accent); background: #141414; }
.objective-card h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 400; line-height: 1.6; color: var(--text); }

/* ============================================
   PAST EVENTS BANNER
   ============================================ */
/* AFTER */
.past-events-image {
  position: relative;
  width: 100%;
  /* aspect-ratio removed — was forcing a short squat box that clipped the image */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.past-events-image img {
  width: 100%;
  height: 100%;        /* lets the image breathe to its full natural height */
  object-fit: unset;   /* cancels the global object-fit: cover that was cropping it */
  filter: brightness(1) contrast(1.1);
  transition: transform 0.8s var(--ease);
}
.past-events-image:hover img { transform: scale(1.03); }

/* ============================================
   BULLET LIST — star bullets
   ============================================ */
.bullet-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.bullet-list li { position: relative; padding-left: 2rem; color: var(--text); font-size: 1.05rem; }
.bullet-list li::before {
  content: '✦';
  position: absolute; left: 0; top: 3px;
  color: var(--accent); font-size: 0.9rem;
}

/* ============================================
   IMPACT BOX & CUSTOM LIST
   ============================================ */
.impact-box {
  background: linear-gradient(160deg, #161616 0%, #0a0a0a 100%);
  border: 1px solid rgba(212,175,55,0.3); padding: 4rem 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(212,175,55,0.03), 0 20px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.impact-box h3 { font-size: 2rem; margin-bottom: 2rem; color: var(--accent); }
.custom-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.custom-list li { position: relative; padding-left: 2.5rem; color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.custom-list li::before { content: '✦'; position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.custom-list.large li { padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.custom-list.large li:last-child { border-bottom: none; padding-bottom: 0; }

/* ============================================
   PAST GUESTS
   ============================================ */
.patron-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  transition: all var(--transition); text-align: center;
}
.patron-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-5px); }
.guest-img {
  width: 130px; height: 130px; border-radius: 50%;
  border: 2px solid var(--accent); padding: 4px;
  margin: 0 auto 2rem; object-fit: cover;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
.patron-card h3 { color: var(--accent); margin-bottom: 0.8rem; }

/* ============================================
   FEATURES & MISSION / VISION
   ============================================ */
.feature-list-wrapper { display: flex; flex-direction: column; justify-content: center; }
.mission-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem; }
.mission-box h3 { color: var(--accent); margin-bottom: 1.5rem; }

/* ============================================
   CERTIFICATIONS
   ============================================ */
/* AFTER */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cert-image-frame {
  /* aspect-ratio removed — was squashing the certificate height */
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6); transition: all var(--transition);
}
.cert-image-frame img {
  width: 100%;
  height: auto;      /* lets certificate expand to its natural height */
  object-fit: unset; /* cancels global object-fit: cover */
}
.cert-image-frame:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 25px 50px rgba(212,175,55,0.15); }

/* ============================================
   FAQ
   ============================================ */
.faq-accordion details { border-bottom: 1px solid var(--border); }
.faq-accordion summary {
  padding: 1.5rem 0; font-size: 1.05rem; font-weight: 500;
  color: var(--text); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; transition: transform var(--transition); }
.faq-accordion details[open] summary { color: var(--accent); }
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-content { padding-bottom: 1.5rem; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ============================================
   REVIEWS CAROUSEL
   ============================================ */
.reviews-wrapper { position: relative; display: flex; align-items: center; padding: 0 1rem; gap: 1.5rem; }
.reviews-track {
  display: flex; gap: 2rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth; padding: 2rem 0; width: 100%;
}
.reviews-track::-webkit-scrollbar { display: none; }
.quote-block.slide {
  min-width: 320px; max-width: 360px; min-height: 420px;
  scroll-snap-align: start; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: var(--radius-lg);
  padding: 3rem 2.5rem; display: flex; flex-direction: column;
  justify-content: space-between; transition: all var(--transition);
}
.quote-block.slide:hover { transform: translateY(-10px); border-color: rgba(212,175,55,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.quote-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 4px; margin-bottom: 1.5rem; }
.quote-block.slide blockquote { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--text); line-height: 1.8; margin: 0 0 2rem 0; flex-grow: 1; }
.quote-block.slide cite { font-size: 0.85rem; color: var(--accent); letter-spacing: 0.15em; font-style: normal; text-transform: uppercase; font-weight: 600; border-top: 1px solid var(--border); padding-top: 1.5rem; display: block; }
.review-btn {
  background: var(--section); border: 1px solid var(--border);
  color: var(--accent); width: 50px; height: 50px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.review-btn:hover { background: var(--accent); color: var(--bg); transform: scale(1.1); }

/* ============================================
   RESPONSIVE — INDEX PAGE
   ============================================ */
@media (max-width: 1200px) {
  .objectives-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .objectives-grid { grid-template-columns: repeat(3, 1fr); }
  .news-frame { max-height: 360px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-content {
    padding-top: calc(var(--navbar-h) + 3rem);
    padding-bottom: 8rem;   /* reduced so newspaper overlap still looks good */
  }
  .hero-sub { font-size: 1rem; max-width: 100%; }

  /* Newspaper section */
  .news-feature { padding: 2rem 1.5rem; }
  .news-frame   { max-height: 280px; }

  /* Objectives */
  .objectives-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Past events banner */
  .past-events-image { aspect-ratio: 16/9; }

  /* Reviews carousel */
  .quote-block.slide { min-width: 85vw; min-height: auto; padding: 2rem 1.5rem; }
  .review-btn { display: none; }

  /* Impact box */
  .impact-box { padding: 2.5rem 2rem; }

  /* Mission boxes */
  .mission-box { padding: 2rem 1.5rem; }

  /* Cert grid */
  .cert-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-content {
    padding-top: calc(var(--navbar-h) + 2rem);
    padding-bottom: 6rem;
  }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Objectives: 1 column */
  .objectives-grid { grid-template-columns: 1fr; }
  .objective-card  { padding: 1.5rem 1.2rem; }

  /* Past events banner */
  .past-events-image { aspect-ratio: 4/3; }

  /* News frame */
  .news-frame { max-height: 220px; }

  /* Impact box */
  .impact-box { padding: 2rem 1.2rem; }
  .impact-box h3 { font-size: 1.4rem; }

  /* Patron cards */
  .patron-card { padding: 2.5rem 1.5rem; }
  .guest-img   { width: 100px; height: 100px; }

  /* Reviews */
  .quote-block.slide { min-width: 92vw; }

  /* Bullet list */
  .bullet-list li { font-size: 0.95rem; }
}

@media (max-width: 360px) {
  .hero-content {
    padding-top: calc(var(--navbar-h) + 1.5rem);
    padding-bottom: 5rem;
  }
  .objectives-grid { gap: 0.8rem; }
}


/* ============================================
   KEY FEATURES
   ============================================ */
.kf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
}

.kf-category {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.kf-category:hover {
  border-color: rgba(212,175,55,0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Category heading row — icon + title */
.kf-category-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.kf-icon             { font-size: 2.5rem; display: block; }
.kf-category-header h3 { font-size: 1.2rem; line-height: 1.35; margin: 0; }

/* Feature items */
.kf-items { display: flex; flex-direction: column; flex: 1; }
.kf-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.kf-item:last-child { border-bottom: none; padding-bottom: 0; }
.kf-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.kf-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .kf-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kf-category { padding: 2.5rem 2rem; }
}
@media (max-width: 480px) {
  .kf-grid { margin-top: 3rem; }
  .kf-category { padding: 2rem 1.5rem; }
  .kf-icon { font-size: 2rem; }
  .kf-category-header h3 { font-size: 1.1rem; }
}


/* ============================================
   FEATURED REEL — ISOLATED STYLES
   ============================================ */

.reel-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.reel-frame {
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-sizing: border-box;
}

.reel-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #000;
}

.reel-details {
  padding: 2rem 0;
}

.reel-details h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
}

.reel-details p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .reel-feature {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .reel-frame {
    max-width: 360px;
  }

  .reel-details {
    text-align: center;
  }

  .reel-details p {
    margin-left: auto;
    margin-right: auto;
  }
}
