/* ==========================================================================
   Rockhill Hermitage - Zen Luxury Layout & CSS System (2026 Redesign)
   ========================================================================== */

:root {
  --sidebar-width: 290px;
  --primary-color: #D9531E; /* Original Terracotta / Orange Accent */
  --primary-hover: #BF4415;
  --primary-light: rgba(217, 83, 30, 0.08);
  --accent-gold: #C89B3C;
  --dark-color: #222222;
  --dark-sidebar: #FFFFFF;
  --sidebar-text: #333333;
  --bg-canvas: #FBF9F6;
  --bg-white: #FFFFFF;
  --border-color: #EBE6DF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Cinzel', serif;
  --transition-fast: all 0.3s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--dark-color);
  font-weight: 600;
}

/* Section Title Accents */
.page-main-title {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  color: #111111;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555555;
  position: relative;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.section-subtitle::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 6px;
}

/* Fixed Left Sidebar for Desktop (lg >= 992px) */
@media (min-width: 992px) {
  .sidebar-desktop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: #FFFFFF;
    border-right: 1px solid var(--border-color);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 1.2rem 1.2rem;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
  }

  .main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: #FFFFFF;
  }

  .mobile-header-bar {
    display: none !important;
  }
}

/* Mobile & Tablet Layout (< 992px) */
@media (max-width: 991.98px) {
  .sidebar-desktop {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0;
    padding-top: 70px;
  }

  .mobile-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
  }
}

/* Sidebar Elements & Alignment */
.sidebar-logo {
  text-align: center;
  margin-bottom: 1.2rem;
  width: 100%;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  width: 100%;
  text-align: center;
}

.sidebar-nav li {
  margin-bottom: 0.55rem;
}

.sidebar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.25rem 0;
  display: block;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--primary-color);
}

.sidebar-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0 1rem;
  width: 100%;
}

.sidebar-social a {
  color: #555555;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.sidebar-social a:hover {
  color: var(--primary-color);
}

.sidebar-footer-text {
  font-size: 0.72rem;
  color: #666666;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  width: 100%;
}

.sidebar-footer-text a {
  color: var(--sidebar-text);
  font-weight: 600;
  text-decoration: none;
}

.sidebar-footer-text a:hover {
  color: var(--primary-color);
}

.lang-selector-btn {
  background-color: #F8F9FA;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333333;
  width: 85%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Offcanvas Menu Styling */
.offcanvas-rockhill {
  background-color: #FFFFFF;
}

.offcanvas-rockhill .nav-link {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #222222;
  padding: 0.8rem 0;
  border-bottom: 1px solid #F0F0F0;
}

.offcanvas-rockhill .nav-link.active,
.offcanvas-rockhill .nav-link:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ==========================================================================
   Homepage Asymmetrical Image Grid (Flex 100vh Layout, Zero Gap)
   ========================================================================== */
.home-mosaic-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: #111111;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .home-mosaic-wrapper {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
}

.mosaic-col-left {
  width: 50%;
  height: 100%;
  position: relative;
  border-right: 2px solid #FFFFFF;
}

.mosaic-col-right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 991.98px) {
  .mosaic-col-left,
  .mosaic-col-right {
    width: 100%;
    height: auto;
    border-right: none;
  }
}

.mosaic-row-top {
  height: 50%;
  width: 100%;
  position: relative;
  border-bottom: 2px solid #FFFFFF;
}

.mosaic-row-bottom {
  height: 50%;
  width: 100%;
  display: flex;
}

@media (max-width: 991.98px) {
  .mosaic-row-top,
  .mosaic-row-bottom {
    height: auto;
  }

  .mosaic-row-bottom {
    flex-direction: column;
  }
}

.mosaic-row-bottom .mosaic-tile {
  width: 50%;
  height: 100%;
}

.mosaic-row-bottom .mosaic-tile:first-child {
  border-right: 2px solid #FFFFFF;
}

@media (max-width: 991.98px) {
  .mosaic-row-bottom .mosaic-tile {
    width: 100%;
    height: 380px;
    border-right: none;
    border-bottom: 2px solid #FFFFFF;
  }
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  background-color: #111111;
}

@media (max-width: 991.98px) {
  .mosaic-col-left .mosaic-tile,
  .mosaic-row-top .mosaic-tile {
    height: 380px;
  }
}

.mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

/* Object Position Focal Adjustments */
.mosaic-img-top-focus {
  object-position: top center !important;
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mosaic-title {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: var(--transition-fast);
}

.mosaic-tile:hover .mosaic-img {
  transform: scale(1.05);
}

.mosaic-tile:hover .mosaic-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(217, 83, 30, 0.7) 100%);
}

.mosaic-tile:hover .mosaic-title {
  letter-spacing: 4px;
  transform: scale(1.05);
}

/* Hero Banners for Internal Pages - Focused Top Position */
.internal-hero-banner {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: top center !important; /* Ensures faces in header images are fully visible */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.internal-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.internal-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 1.5rem;
}

.internal-hero-title {
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.internal-hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Custom Buttons */
.btn-rockhill-orange {
  background-color: var(--primary-color);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(217, 83, 30, 0.25);
}

.btn-rockhill-orange:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 83, 30, 0.35);
}

/* Discipline Cards List */
.discipline-cards-list .card {
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.discipline-cards-list .card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important;
  border-color: rgba(217, 83, 30, 0.3);
}

/* Gallery Masonry & Filters */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.btn-filter {
  background-color: #F5F5F5;
  border: 1px solid #E5E5E5;
  color: #444444;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-filter:hover,
.btn-filter.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  background-color: #EFEFEF;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.masonry-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal Popup */
.lightbox-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-popup.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Floating WhatsApp Badge */
.whatsapp-float-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.whatsapp-label {
  background-color: #FFFFFF;
  color: #333333;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.whatsapp-icon-btn {
  width: 48px;
  height: 48px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition-fast);
}

.whatsapp-float-container:hover .whatsapp-icon-btn {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Content Area Footer */
.content-footer {
  background-color: #1A1A1A;
  color: #999999;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.content-footer a {
  color: #CCCCCC;
  text-decoration: none;
  transition: var(--transition-fast);
}

.content-footer a:hover {
  color: var(--primary-color);
}

.footer-credit-link {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.footer-credit-link:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}
