/**
 * Phase 10 — Media + content pages (.rr-content-hub).
 * Reuses filter-buttons, rr-touch-*, timeline, rr-side-card, section-title.
 */

.rr-content-hub {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rr-content-hub > .container {
  max-width: var(--rr-shell-max, 72rem);
  padding-left: var(--rr-shell-pad-x, 1rem);
  padding-right: var(--rr-shell-pad-x, 1rem);
}

.rr-content-hero .container {
  position: relative;
  z-index: 1;
}

.rr-content-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  max-width: 24ch;
}

.rr-content-hero-lead {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 42ch;
}

.rr-content-section-head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.rr-content-section-head .section-title {
  margin-bottom: 0.35rem;
}

.rr-content-section-head p {
  color: var(--rr-muted);
  margin: 0.65rem 0 0;
  max-width: 52ch;
  line-height: 1.55;
}

/* ── Gallery ── */
.rr-media-page .container.rr-shell-container {
  overflow-x: clip;
}

.rr-media-page .rr-media-filter {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: var(--rr-radius);
  box-shadow: var(--rr-shadow-sm);
  padding: clamp(0.85rem, 2vw, 1.1rem);
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.rr-media-page .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0;
  text-align: center;
}

.rr-media-page .filter-buttons .btn {
  background: #fff;
  color: var(--rr-text);
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rr-media-page .filter-buttons .btn:hover {
  background: var(--rr-ink);
  color: #fff;
  border-color: var(--rr-ink);
  transform: translateY(-1px);
}

.rr-media-page .filter-buttons .btn.is-checked {
  background: var(--rr-orange);
  color: #fff;
  border-color: var(--rr-orange);
  box-shadow: 0 8px 18px rgba(236, 105, 1, 0.22);
}

.rr-gallery-grid {
  margin: 0 -0.5rem;
}

.rr-gallery-grid::after {
  content: "";
  display: block;
  clear: both;
}

.rr-gallery-grid .gallery-item {
  float: left;
  width: 25%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.rr-gal-card {
  background: #fff;
  border-radius: var(--rr-radius);
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.05);
  box-shadow: var(--rr-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rr-gal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rr-shadow);
}

.rr-gal-media {
  position: relative;
  overflow: hidden;
  background: var(--rr-slate);
  aspect-ratio: 4 / 3;
}

.rr-gallery-grid .gallery-item:nth-child(6n + 1) .rr-gal-media { aspect-ratio: 3 / 4; }
.rr-gallery-grid .gallery-item:nth-child(6n + 2) .rr-gal-media { aspect-ratio: 16 / 10; }
.rr-gallery-grid .gallery-item:nth-child(6n + 3) .rr-gal-media { aspect-ratio: 1 / 1; }
.rr-gallery-grid .gallery-item:nth-child(6n + 4) .rr-gal-media { aspect-ratio: 5 / 4; }
.rr-gallery-grid .gallery-item:nth-child(6n + 5) .rr-gal-media { aspect-ratio: 3 / 4; }
.rr-gallery-grid .gallery-item:nth-child(6n) .rr-gal-media { aspect-ratio: 16 / 11; }

.rr-gal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0.96;
}

.rr-gal-card:hover .rr-gal-media img {
  transform: scale(1.1);
  opacity: 1;
}

.rr-gal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.72) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rr-gal-card:hover .rr-gal-media::after { opacity: 1; }

.rr-gal-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.05rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.rr-gal-card:hover .rr-gal-overlay {
  opacity: 1;
  transform: translateY(0);
}

.rr-gal-overlay h5 {
  color: #fff;
  font-family: var(--rr-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  margin: 0;
}

.rr-gal-dl {
  display: block;
  width: 100%;
  border-radius: 0 0 var(--rr-radius) var(--rr-radius) !important;
  margin-top: 0 !important;
  background: #fff !important;
  color: var(--rr-orange) !important;
  border: 0 !important;
  border-top: 1px solid rgba(11, 18, 32, 0.07) !important;
  box-shadow: none !important;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.rr-gal-dl:hover,
.rr-gal-dl:focus {
  background: rgba(236, 105, 1, 0.08) !important;
  color: var(--rr-orange-deep) !important;
}

.rr-gal-frame {
  display: block;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .rr-gallery-grid .gallery-item { width: 50%; }
}

@media (max-width: 575.98px) {
  .rr-media-page .rr-gallery-grid {
    margin: 0;
  }

  .rr-gallery-grid .gallery-item { width: 100%; }
  .rr-gallery-grid .gallery-item .rr-gal-media { aspect-ratio: 16 / 11 !important; }
  .rr-gal-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.7), transparent);
  }
  .rr-gal-media::after { opacity: 1; }
  .rr-gal-card:hover { transform: none; }
  .rr-gal-card:hover .rr-gal-media img { transform: scale(1.04); }
}

/* ── Video ── */
.rr-video-page .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.rr-video-page .video-card {
  background: #fff;
  border-radius: var(--rr-radius);
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.05);
  box-shadow: var(--rr-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rr-video-page .video-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--rr-shadow);
}

.rr-video-page .video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--rr-ink);
  overflow: hidden;
}

.rr-video-page .video-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: brightness(0.92);
}

.rr-video-page .video-card:hover .video-thumbnail img {
  transform: scale(1.08);
  filter: brightness(1);
}

.rr-video-page .video-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.55) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.rr-video-page .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(236, 105, 1, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
  box-shadow: 0 10px 28px rgba(236, 105, 1, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.rr-video-page .video-card:hover .play-button {
  background: var(--rr-orange);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 32px rgba(236, 105, 1, 0.45);
}

.rr-video-page .play-button i {
  color: #fff;
  font-size: 1.65rem;
  margin-left: 3px;
  transition: transform 0.25s ease;
}

.rr-video-page .video-card:hover .play-button i {
  transform: translateX(1px);
}

.rr-video-page .video-content {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rr-video-page .video-title {
  font-family: var(--rr-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rr-ink);
  margin-bottom: 0.45rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rr-video-page .video-description {
  color: var(--rr-text);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  flex: 1;
}

.rr-video-page .video-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--rr-muted);
}

.rr-video-page .video-meta i {
  color: var(--rr-orange);
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 18, 32, 0.92);
  animation: rrVideoFade 0.28s ease;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  width: min(92vw, 1100px);
  padding: 1rem;
}

.video-modal-close {
  position: absolute;
  top: -2.35rem;
  right: 0.25rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10000;
  line-height: 1;
}

.video-modal-close:hover {
  color: var(--rr-orange);
  transform: scale(1.08);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #000;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

@keyframes rrVideoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rr-video-page .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--rr-text);
  background: #fff;
  border-radius: var(--rr-radius);
  box-shadow: var(--rr-shadow-sm);
}

.rr-video-page .empty-state i {
  font-size: 3.5rem;
  color: var(--rr-steel);
  opacity: 0.55;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .rr-video-page .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .rr-video-page .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rr-video-page .video-card:hover { transform: none; }
  .rr-video-page .video-card:hover .video-thumbnail img { transform: scale(1.03); }
  .rr-video-page .video-card:hover .play-button { transform: translate(-50%, -50%); }
  .rr-video-page .play-button { width: 58px; height: 58px; }
  .rr-video-page .play-button i { font-size: 1.35rem; }
  .video-modal-content { width: 96vw; padding: 0.5rem; }
}

/* ── About ── */
.rr-about-page .rr-about-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.rr-about-page .rr-about-points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--rr-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rr-about-page .rr-about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rr-orange);
}

.rr-about-page .rr-about-intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rr-about-page .timeline {
  margin-top: 0.5rem;
}

.rr-about-page .timeline .t-item {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: var(--rr-shadow-sm);
}

.rr-about-impact .rr-side-card {
  height: 100%;
}

/* ── Contact ── */
.rr-contact-page .rr-contact-main {
  background: var(--rr-light);
}

.rr-contact-page .contact-info-box {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rr-contact-page .contact-info-box li {
  background: #fff;
  border-radius: var(--rr-radius);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: var(--rr-shadow-sm);
}

.rr-contact-page .contact-info-box .icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--rr-orange);
}

.rr-contact-page .contact-info-box h6 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rr-ink);
}

.rr-contact-page .contact-info-box p,
.rr-contact-page .contact-info-box a {
  margin: 0;
  color: var(--rr-text);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rr-contact-page .contact-info-box a:hover {
  color: var(--rr-orange);
}

.rr-contact-page .rr-touch-card {
  height: 100%;
}

@media (max-width: 767.98px) {
  .rr-contact-page .rr-touch-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .rr-contact-page .rr-touch-input {
    min-height: 2.85rem;
  }

  .rr-contact-page .btn-rr {
    width: 100%;
    min-height: 2.85rem;
  }
}

.rr-contact-page .rr-contact-map {
  border-radius: var(--rr-radius);
  overflow: hidden;
  box-shadow: var(--rr-shadow-sm);
  border: 1px solid rgba(11, 18, 32, 0.05);
  margin-top: 1.25rem;
}

.rr-contact-page .rr-contact-map iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

.rr-contact-page .rr-contact-socials h5 {
  font-family: var(--rr-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rr-ink);
}

.rr-contact-page .rr-contact-social-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.05);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.rr-contact-page .rr-contact-social-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--rr-shadow-sm);
}

.rr-contact-page .rr-contact-social-item .icon {
  color: var(--rr-orange);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.rr-contact-page .rr-contact-social-item h6 {
  margin-bottom: 0.15rem;
  color: var(--rr-ink);
  font-weight: 700;
}

.rr-contact-page .rr-contact-social-item p { margin: 0; }

.rr-contact-page .rr-contact-social-item a {
  color: var(--rr-text);
  text-decoration: none;
}

.rr-contact-page .rr-contact-social-item a:hover { color: var(--rr-orange); }

.rr-contact-page .rr-contact-lower {
  padding-top: 0;
}

.rr-contact-page .rr-contact-aside {
  border-left: 1px solid rgba(11, 18, 32, 0.08);
}

@media (max-width: 991.98px) {
  .rr-contact-page .rr-contact-aside {
    border-left: 0;
    border-top: 1px solid rgba(11, 18, 32, 0.08);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .rr-contact-page .btn-rr { width: 100%; }
  .rr-contact-page .rr-contact-social-item:hover { transform: none; }
  .rr-contact-page .rr-contact-map iframe { height: 260px; }
}

/* ── Legal ── */
.rr-legal-page .rr-legal-container {
  max-width: 52rem;
}

.rr-legal-doc {
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: var(--rr-shadow-sm);
}

.rr-legal-doc .card-body {
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

.rr-legal-h2 {
  font-family: var(--rr-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--rr-ink);
  margin: 0 0 0.65rem;
}

.rr-legal-h2 + ul {
  margin-bottom: 0;
}

.rr-legal-doc ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.rr-legal-doc ul li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
  color: var(--rr-text);
  font-size: 0.92rem;
}

.rr-legal-doc ul li:last-child {
  margin-bottom: 0;
}

.rr-legal-section + .rr-legal-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
}

.rr-legal-doc p {
  line-height: 1.6;
  color: var(--rr-text);
  font-size: 0.92rem;
}

.rr-legal-doc p,
.rr-legal-doc li,
.rr-legal-link {
  overflow-wrap: anywhere;
}

.rr-legal-doc code {
  font-size: 0.85em;
  background: var(--rr-light);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.rr-legal-link {
  color: var(--rr-orange);
  font-weight: 600;
  text-decoration: none;
}

.rr-legal-link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .rr-gal-card,
  .rr-gal-media img,
  .rr-gal-overlay,
  .rr-media-page .filter-buttons .btn,
  .rr-video-page .video-card,
  .rr-video-page .video-thumbnail img,
  .rr-video-page .play-button,
  .video-modal,
  .rr-contact-page .rr-contact-social-item {
    transition: none !important;
    animation: none !important;
  }

  .rr-gal-card:hover,
  .rr-gal-card:hover .rr-gal-media img,
  .rr-video-page .video-card:hover,
  .rr-video-page .video-card:hover .video-thumbnail img,
  .rr-video-page .video-card:hover .play-button {
    transform: none !important;
  }

  .rr-video-page .video-card:hover .play-button {
    transform: translate(-50%, -50%) !important;
  }
}
