/* THE SPARTAN GROUP - main.css */

/* google fonts variable */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

/* SHARED */

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 90%;
}

a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
}

a:hover,
a:focus,
a:active {
  color: rgba(0, 0, 0, 0.9);
}

img {
  max-width: 100%;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 400;
}

/* bg child has bg defined inline */
.item-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(0, 0, 0, 0.9);
  background-position: center;
  background-size: cover;
  transition: all 0.5s ease;
  z-index: 1;
}

/* darken evenly */
.item-bg::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
}

/* darken at top */
.item-bg-top::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 33%
  );
}

/* darken at bottom */
.item-bg-bottom::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 33%
  );
}

/* zoom */

.hover-item:hover .item-bg,
.hover-item:focus .item-bg {
  transform: scale(1.07);
}

/* lighten */
/* bg parent must have hover-item class applied */
.hover-item:hover .item-bg::before,
.hover-item:focus .item-bg::before {
  background-color: rgba(0, 0, 0, 0.2);
}

/* FILTERS */

.filter-item {
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.filter-item.visible {
  opacity: 1;
  transform: scale(1);
  display: block;
}

/* NAV */

.navbar-brand img {
  margin-bottom: 0.65rem;
  max-height: 2.5rem;
}

.navbar-nav li {
  margin-inline: 1rem;
  font-weight: 600;
}

/* HERO */

.hero-item {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 2rem;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sub-hero-item {
  min-height: 200px;
}

.hero-content {
  position: relative;
  font-weight: 300;
  color: #fff;
  z-index: 2;
}

@media (max-width: 767px) {
  .hero-item {
    min-height: 400px;
  }

  .sub-hero-item {
    min-height: 200px;
  }
}

/* EXPANDING GALLERY */

.ex-gallery {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: #222;
  max-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.ex-gallery-label {
  position: absolute;
  width: 100%;
  height: 8rem;
  padding: 1.5rem 1.5rem;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.ex-gallery img {
  max-width: 100%;
  filter: brightness(100%);
}

.ex-gallery img:hover {
  filter: brightness(90%);
}

/* .ex-gallery:has(.ex-gallery-panel:hover) .ex-gallery-panel:not(:hover) img {
  filter: grayscale(100%);
} */

.ex-gallery-panel {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s ease-in-out;
  border-radius: 0rem;
}

.ex-gallery-panel:hover {
  flex: 2.5;
}

.ex-gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.ex-gallery-panel:nth-child(2) img {
  scale: 1.15;
}

.ex-gallery-panel:nth-child(5) img {
  scale: 1.25;
}

/* MANAGEMENT */

.mgmt-brands {
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.mgmt-brands li {
  width: 6rem;
  margin: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.5s ease;
}

.mgmt-brands li:hover,
.mgmt-brands li:focus,
.mgmt-brands li.active {
  border-bottom: 2px solid #222;
}

.mgmt-regions {
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.mgmt-regions li {
  margin: 0.5rem 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.5s ease;
  font-weight: 600;
}

.mgmt-regions li:hover,
.mgmt-regions li:focus,
.mgmt-regions li.active {
  border-bottom: 2px solid #222;
}

.mgmt-container {
  min-height: 42rem;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5em;
}

.mgmt-item {
  position: relative;
  width: 18rem;
  height: 20rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.mgmt-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: end;
  padding: 1rem;
  color: #eee;
  z-index: 1;
}

.mgmt-content h3 {
  font-size: 0.9em;
  font-weight: 300;
}

/* little arrow */
.mgmt-content::before {
  content: "";
  display: inline-block;
  margin: 0.5em;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23eee' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  opacity: 0;
  transition: all 0.5s ease;
}

.mgmt-content:hover::before,
.mgmt-content:focus::before {
  opacity: 1;
}

@media (max-width: 767px) {
  .mgmt-brands li {
    width: 4rem;
  }
}

/* PROPERTIES */

.prop-categories {
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.prop-categories li {
  margin: 0.5rem 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.5s ease;
  font-size: 1.1em;
  font-weight: 600;
}

.prop-categories li:hover,
.prop-categories li:focus,
.prop-categories li.active {
  border-bottom: 2px solid #222;
}

.prop-container {
  min-height: 42rem;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1em;
}

.prop-item {
  position: relative;
  width: 18rem;
  height: 22rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.prop-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #eee;
  z-index: 1;
}

.prop-content p {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #999;
}

.prop-content h3 {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

/* ABOUT */
.about-letter {
  /* place photo alongside signature */
  margin-bottom: 15rem;
  max-width: 1100px;
  padding: 4rem 5rem;
  font-size: 1.1rem;
}

.about-photo-container {
  position: relative;
}

.about-photo {
  position: absolute;
  bottom: -18rem;
  padding: 1rem;
  width: 23rem;
  height: 23rem;
  background-color: #fffff0;
  transform: rotate(-5deg);
}

@media (max-width: 991px) {
  .about-photo {
    /* place photo below signature */
    bottom: -24rem;
  }
}

@media (max-width: 767px) {
  .about-letter {
    /* for photo */
    margin-bottom: 23rem;
    padding: 2rem 2.5rem;
    font-size: 1rem;
  }
}

/* CONTACT */

.contact-content {
  height: 400px;
  padding: 4rem;
  line-height: 1.75em;
  color: #eee;
}

.contact-content span {
  font-size: 1.1em;
  font-weight: bold;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.contact-content a {
  color: #aaa;
}

.contact-map {
  height: 400px;
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  border: 2px solid #eee;
}

/* FOOTER */

footer p {
  font-size: 0.8em;
}

footer p img {
  display: inline-block;
  margin: 0 0.25rem 0.15rem 0.25rem;
  max-height: 1.5em;
  filter: saturate(0) opacity(75%);
}
