/* ================================
   GLOBAL RESET
================================ */

html, body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

/* Kill Bootstrap/T4 container padding */
.container,
.container-fluid,
.t4-main-body,
.t4-section,
.t4-content,
.t4-body,
.row {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Hide unwanted T4 chrome (visual only, Joomla still works) */
#t4-header,
#t4-footer,
#t4-breadcrumbs {
  display: none !important;
}

/* ================================
   MASTER LAYOUT
================================ */

.t4-body-inner {
  height: 100vh;
}

.t4-main-body {
  display: grid;
  grid-template-columns: 25% 75%;
  height: 100vh;
  width: 100vw;
}

/* ================================
   LEFT SIDEBAR (MENU)
================================ */

.t4-sidebar,
aside {
  position: fixed;
  left: 0;
  top: 0;
  width: 25vw;
  height: 100vh;
  background: #3a3a3a;
  padding: 3rem 2rem;
  z-index: 10;
  overflow-y: auto;
}

.t4-sidebar * {
  color: #fff;
}

.t4-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
}

.t4-sidebar li {
  margin-bottom: 1.2rem;
}

/* ================================
   RIGHT CONTENT / HERO
================================ */

.t4-content,
main {
  margin-left: 25vw;
  width: 75vw;
  height: 100vh;
  overflow: hidden;
}

/* ================================
   HERO GRID
================================ */

.hero-row {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  width: 100%;
  height: 100vh;
}

.hero-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================
   RESPONSIVE SAFETY
================================ */

@media (max-width: 991px) {
  body {
    overflow: auto;
  }

  .t4-main-body {
    display: block;
  }

  .t4-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .t4-content {
    margin-left: 0;
    width: 100%;
    height: auto;
  }

  .hero-row {
    height: auto;
  }
}
