/* Aaron G Dairy - Digital Marketing Campaign case study */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f3f2ee;
  color: #111111;
}

/* Scroll-reveal */
.kb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kb-gallery-grid .kb-reveal:nth-child(3n+2) {
  transition-delay: 0.08s;
}

.kb-gallery-grid .kb-reveal:nth-child(3n+3) {
  transition-delay: 0.16s;
}

.row.g-4 > .kb-reveal:nth-child(3n+2) {
  transition-delay: 0.1s;
}

.row.g-4 > .kb-reveal:nth-child(3n+3) {
  transition-delay: 0.2s;
}

.kb-feature-duo .kb-reveal:nth-child(2) {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .kb-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #0d0d0d;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.5;
  color: #333333;
}

.logo-card {
  background: #ffffff;
  border-radius: 24px;
  height: 253px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-logo-slider {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-logo-slider .hero-logo-slide {
  display: none;
}

.hero-logo-slider .hero-logo-slide.is-active {
  display: block;
}

.hero-logo-slider .logo-card {
  margin: 0;
}

.hero-logo-slider .kb-video-card {
  aspect-ratio: unset;
  width: 100%;
  height: 253px;
  border-radius: 24px;
  margin: 0;
}

.hero-logo-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.hero-logo-slider-nav:hover {
  background: #ea332d;
}

.hero-logo-slider-nav.prev {
  left: 10px;
}

.hero-logo-slider-nav.next {
  right: 10px;
}

.hero-logo-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-logo-slider-dots .dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.hero-logo-slider-dots .dot.is-active {
  background: #ea332d;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background-color: #333333;
  color: #e2e2e2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  line-height: 1;
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.cta-btn .btn-text {
  background-color: #333333;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn .btn-text .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.cta-btn .btn-arrow {
  background-color: #333333;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover .btn-text,
.cta-btn:hover .btn-arrow {
  background-color: #111111;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.35);
}

.cta-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Social post grid */
.kb-post-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  height: 316px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}

.kb-post-card.kb-post-large {
  height: 632px;
}

.kb-post-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14), 0 0 24px rgba(234, 51, 45, 0.22);
}

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

.kb-lightbox-img {
  cursor: zoom-in;
}

/* Video thumbnail cards */
.kb-video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.kb-video-card:hover {
  box-shadow: 0 0 32px rgba(234, 51, 45, 0.35);
}

.kb-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kb-video-card:hover img {
  opacity: 0.4;
  transform: scale(1.04);
}

.kb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #ea332d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.4rem;
}

.kb-video-card:hover .kb-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ea332d;
  color: #ffffff;
  box-shadow: 0 0 0 10px rgba(234, 51, 45, 0.25), 0 0 40px rgba(234, 51, 45, 0.55);
}

/* Gallery month grouping */
.kb-month-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
}

.kb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kb-post-card-sm {
  height: auto;
}

.kb-post-card-sm img {
  height: auto;
  object-fit: contain;
}

.kb-feature-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.kb-feature-duo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* Video embeds */
.kb-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
}

.kb-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kb-video-title {
  margin-top: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: #111111;
}

.kb-video-title .role {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: #666666;
  margin-top: 2px;
}

/* Red CTA band */
.kb-cta-band {
  background-color: #ea332d;
  border-radius: 24px;
  padding: 32px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.kb-cta-band h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.kb-cta-band a {
  background-color: #ffffff;
  color: #111111;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.kb-cta-band a:hover {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Appointment form */
.kb-appointment-section {
  background-color: #111111;
  border-radius: 32px;
  padding: 60px 48px;
  color: #ffffff;
}

.kb-form-group label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
  color: #dddddd;
}

.kb-form-group input,
.kb-form-group textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.kb-form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.kb-submit-btn {
  background-color: #ea332d;
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kb-submit-btn:hover {
  background-color: #c9241f;
}

/* Contact info */
.kb-contact-info {
  background-color: #111111;
  border-radius: 32px;
  padding: 56px 48px;
  color: #ffffff;
}

.kb-contact-info-sub {
  color: #aaaaaa;
  margin-bottom: 32px;
}

.kb-contact-box i {
  color: #ea332d;
  margin-right: 8px;
}

.kb-contact-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.kb-contact-box p {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.kb-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 20px;
  margin-top: 32px;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .kb-post-card:not(.kb-post-card-sm),
  .kb-post-card.kb-post-large {
    height: 280px;
  }

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

  .kb-feature-duo {
    grid-template-columns: 1fr;
  }

  .kb-appointment-section,
  .kb-contact-info {
    padding: 36px 24px;
  }
}

@media (max-width: 575px) {
  .kb-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox / video popup */
.kb-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.kb-modal-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2001;
}

#kbLightboxImg {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.kb-modal-overlay.active #kbLightboxImg,
.kb-modal-overlay.active .kb-video-modal-box {
  transform: scale(1);
}

.kb-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2001;
}

.kb-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.kb-lightbox-prev {
  left: 24px;
}

.kb-lightbox-next {
  right: 24px;
}

.kb-video-modal-box {
  width: 100%;
  max-width: 900px;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.kb-video-modal-box .kb-embed {
  border-radius: 16px;
}

@media (max-width: 575px) {
  .kb-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .kb-lightbox-prev {
    left: 8px;
  }

  .kb-lightbox-next {
    right: 8px;
  }

  .kb-modal-close {
    top: 12px;
    right: 16px;
  }
}

/* Campaign snapshots slider */
.kb-slider-btn {
  background-color: #333333;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.kb-slider-btn:hover {
  background-color: #111111;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.35);
}

.kb-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.kb-slider-track::-webkit-scrollbar {
  display: none;
}

.kb-slider-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.kb-slider-item img {
  height: 220px;
  width: auto;
  display: block;
}

.kb-slider-item--reel {
  width: 124px;
  aspect-ratio: auto;
  height: 220px;
  border-radius: 18px;
}

@media (max-width: 575px) {
  .kb-slider-item img {
    height: 150px;
  }

  .kb-slider-item--reel {
    width: 85px;
    height: 150px;
  }
}
