/* ============================================
   SHISH KABOB EXPRESS - Community Page Styles
   ============================================ */

/* --- Founder's Story --- */
.founder {
  padding: 6rem 0;
  background: var(--color-white);
}

.founder__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.founder__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.founder__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
}

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

.founder__content h2 {
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.founder__content h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: 0.5px;
}

.founder__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
}

.founder__content p:last-child {
  margin-bottom: 0;
}

/* --- Academic Credentials --- */
.credentials {
  padding: 5rem 0;
  background: var(--color-off-white);
}

.credentials .section-header {
  margin-bottom: 3rem;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.credential-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 4px solid var(--color-primary);
  position: relative;
}

.credential-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.credential-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.credential-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

.credential-card__degree {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.credential-card__field {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.credential-card__school {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 0.25rem;
}

.credential-card__year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  letter-spacing: 1px;
}

/* --- Brand Story --- */
.brand-story {
  padding: 6rem 0;
  background: var(--color-white);
}

.brand-story__content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.brand-story__content h2 {
  margin-bottom: 1rem;
  position: relative;
}

.brand-story__content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.brand-story__content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
}

.brand-story__research {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  text-align: left;
}

.brand-story__research p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0;
  color: var(--color-gray-dark);
}

/* --- Community Engagement --- */
.community-engagement {
  padding: 5rem 0;
  background: var(--color-off-white);
}

.community-engagement .section-header {
  margin-bottom: 2.5rem;
}

.community-engagement .section-header p {
  max-width: 780px;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
}

/* image fills its tile without setting the tile's height, so wide and big
   tiles take their height from the square tiles in the same rows */
.gallery-grid__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

.gallery-grid__item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}




/* Feature Cards */
.engagement-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.engagement-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.engagement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.engagement-card__icon {
  width: 72px;
  height: 72px;
  background: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.engagement-card__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

.engagement-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-black);
}

.engagement-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonials {
  padding: 5rem 0;
  background: var(--color-white);
}

.testimonials .section-header {
  margin-bottom: 3rem;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.testimonial-card__inner {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card__inner::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.15;
  position: absolute;
  top: 0.25rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-stars svg {
  width: 22px;
  height: 22px;
  fill: #F9A825;
}

.testimonial-card__quote {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-gray-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}

.testimonial-card__location {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-off-white);
  border: 2px solid var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--color-black);
  border-color: var(--color-black);
}

.carousel-btn:hover svg {
  fill: var(--color-white);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-gray-dark);
  transition: fill var(--transition);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-black);
  transform: scale(1.2);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
}

@media (max-width: 1024px) {
  .founder__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .credentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .engagement-features {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .founder {
    padding: 4rem 0;
  }

  .founder__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .founder__content {
    text-align: center;
  }

  .credentials__grid {
    grid-template-columns: 1fr;
  }





  .engagement-features {
    grid-template-columns: 1fr;
  }


  .brand-story {
    padding: 4rem 0;
  }

  .brand-story__research {
    padding: 1.5rem;
  }

  .testimonial-card__inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {



  .credential-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-card__quote {
    font-size: 1rem;
  }
}

/* --- Mobile-first refinements --- */
@media (max-width: 768px) {


  .founder {
    padding: 3rem 0;
  }


}

/* --- Gallery layout: 14 photos sized so every row is full at every width ---
   phones/tablets (3 cols): 1 big (2x2) + 1 wide + 12 singles = 18 cells = 6 rows
   laptops (4 cols):        1 big + 3 wide + 10 singles      = 20 cells = 5 rows
   desktops (5 cols):       1 big + 3 wide + 10 singles      = 20 cells = 4 rows */
.gallery-grid__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-grid__item:nth-child(8) {
  grid-column: span 2;
  aspect-ratio: auto;
}

@media (min-width: 769px) {
  .gallery-grid {
    gap: 0.75rem;
    margin-bottom: 4rem;
  }
}

@media (min-width: 1025px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid__item:nth-child(4),
  .gallery-grid__item:nth-child(12) {
    grid-column: span 2;
    aspect-ratio: auto;
  }
}

@media (min-width: 1201px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
