/* ========== HOME PAGE ========== */

/* Hero Slider */
.hero {
  position: relative;
  height: 520px;
  margin-top: var(--header-h);
  overflow: hidden;
}
.hero .hero-slide { animation: hero-fade-3 15s ease-in-out infinite; }
.hero .hero-slide:nth-child(1) { animation-delay: -0.5s; }
.hero .hero-slide:nth-child(2) { animation-delay: 4.5s; }
.hero .hero-slide:nth-child(3) { animation-delay: 9.5s; }

@keyframes hero-fade-3 {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  37%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}


/* Dark overlay — scoped to each slide via pseudo-element so the message box sits above it */
.hero .hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

/* Per-slide message boxes — inside their slide, above the ::after overlay */
.slide-msg {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 8%;
}

/* Slide 1 — red paragraph box */
.slide-msg--1 {
  background: var(--red);
  color: var(--white);
  padding: 32px 40px;
  max-width: 580px;
  width: 90%;
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 500;
}

/* Slide 2 — tags + white tagline */
.slide-msg--2 {
  text-align: center;
  white-space: nowrap;
}
.slide-msg-tags {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 2px;
}
.slide-msg-tags span {
  background: var(--red);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
}
.slide-msg-tagline {
  background: var(--white);
  color: var(--text);
  padding: 18px 40px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

/* Slide 3 — red centered headline */
.slide-msg--3 {
  background: var(--red);
  color: var(--white);
  padding: 32px 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.65;
}

/* Our Message */
.our-message { background: var(--white); }
.our-message .container { max-width: 780px; }
.our-message-text { font-size: 1rem; color: var(--text-light); line-height: 1.9; }
.our-message-text p + p { margin-top: 1.2rem; }

/* Our Office */
.our-office { background: var(--bg-gray); }
.our-office-media { display: flex; justify-content: center; }
.office-thumb {
  position: relative;
  display: block;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.office-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.office-thumb img { width: 100%; height: auto; display: block; }
.office-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  transition: background 0.3s, transform 0.3s;
}
.office-thumb-play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}
.office-thumb:hover .office-thumb-play { background: var(--red); transform: translate(-50%, -50%) scale(1.06); }

/* Video Lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.video-lightbox.is-open { display: flex; }
.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
}
.video-lightbox-video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  background: #000;
  outline: none;
}
.video-lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.video-lightbox-close:hover { color: var(--red); }

/* Our Business */
.our-business { background: var(--bg); }
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.business-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.business-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.business-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.business-card-body { padding: 28px 28px 32px; }
.business-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.business-card-body p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero { height: 380px; }
  .slide-msg { right: 4%; bottom: 5%; }
  .slide-msg--1 { padding: 20px 22px; font-size: 0.9rem; }
  .slide-msg-tags { flex-wrap: nowrap; }
  .slide-msg-tags span { padding: 8px 10px; font-size: 0.7rem; white-space: nowrap; }
  .slide-msg-tagline { font-size: 1rem; padding: 14px 20px; }
  .slide-msg--3 { padding: 20px 24px; font-size: 1rem; }
  .business-grid { grid-template-columns: 1fr; }
}
