/* === RESET === */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #666;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TOP BAR === */
.social-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 2rem 0.5rem 2rem;
  background-color: #fff;
}
.social-left img {
  width: 29px;
  height: auto;
  transition: transform 0.3s ease;
}
.social-left img:hover { transform: scale(1.05); }

.social-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.social-right img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.social-right img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* === HEADER === */
.site-header {
  text-align: left;
  background: #fff;         /* stays white */
  padding: 2rem 3rem;       /* match homepage vertical spacing */
  margin-bottom: 0;         /* keep hero/gallery snug below */
}
.site-header .title-block {
  max-width: 100%;
  margin: 0 auto;
  color: #666;
}
.site-header .title-block h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: #666;
  margin: 0 0 0.75rem 0;
}
.site-header .title-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* === HERO VIDEO (clean, mobile-safe, no cropping) === */
.hero-video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.hero-video video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: none;
  background: #000;
}

/* Fix for iOS Safari viewport changes */
@supports (-webkit-touch-callout: none) {
  .hero-video video {
    min-height: 100%;
    max-height: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-video {
    width: 100vw;
    height: auto;
  }
  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
@media (max-width: 480px) and (orientation: portrait) {
  .hero-video {
    height: auto;
  }
  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* === SMART GALLERY === */
.smart-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 0;
  background-color: #000;
}
.tile {
  position: relative;
  overflow: hidden;
  background-color: #000;
}
.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: #000;
  color: #fff;
  padding: 2rem;
}
.tile.text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.tile.text p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

/* Video hover */
.tile video { transition: opacity 0.5s ease; }
.tile:hover video { opacity: 0.8; }

/* Fade-in text tiles */
.fade-in { animation: fadeIn 1.2s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Aspect-ratio variations */
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }

/* Responsive gallery grid */
@media (max-width: 900px) {
  .smart-gallery {
    grid-template-columns: repeat(auto-fill, minmax(33.33%, 1fr));
  }
}
@media (max-width: 600px) {
  .smart-gallery {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
}

/* === FOOTER === */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff !important;
  padding: 1rem 3rem;
  border: none;
  margin-top: 3rem;
}
.footer-left img {
  width: 29px;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.footer-left img:hover { transform: scale(1.08); }

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-text {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
  text-align: right;
}
.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.footer-right img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.footer-right img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* Responsive footer */
@media (max-width: 900px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
  }
  .footer-right-group {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-right { gap: 25px; }
  .footer-left img { width: 35px; }
  .footer-text { margin-top: 0.5rem; text-align: center; }
  .footer-text a {
    color: #666;
    text-decoration: none;
    cursor: pointer;
  }
  .footer-text a:hover { text-decoration: underline; }
}

/* Icon consistency */
.social-right img,
.footer-icons img,
.footer-right img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.social-right img:hover,
.footer-icons img:hover,
.footer-right img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}
