@charset "UTF-8";

:root {
  --mc-primary: #64a19d;
  --mc-black: #000;
  --mc-soft-black: #070707;
  --mc-panel: #101010;
  --mc-paper: #f8f9fa;
  --mc-ink: #212529;
  --mc-muted: rgba(255, 255, 255, 0.68);
  --mc-line: rgba(255, 255, 255, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mc-ink);
  background: var(--mc-black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mc-primary);
  text-decoration: none;
}

a:hover {
  color: #467370;
}

.bg-black {
  background-color: var(--mc-black) !important;
}

.btn-primary {
  --bs-btn-bg: var(--mc-primary);
  --bs-btn-border-color: var(--mc-primary);
  --bs-btn-hover-bg: #558d89;
  --bs-btn-hover-border-color: #558d89;
  --bs-btn-active-bg: #467370;
  --bs-btn-active-border-color: #467370;
}

#mainNav {
  min-height: 3.5rem;
  background-color: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 8px 0 0 0;
  border: 0;
}}

#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.09);
}

@media (max-width: 767.98px) {
    #mainNav .navbar-brand img {
        height: 54px;
        transition: height 0.2s ease;
    }
}

@media (min-width: 768px) {
    #mainNav .navbar-brand img {
      width: auto;
      transition: height 0.2s ease;
    }
}

#mainNav.navbar-shrink .navbar-brand img {
  height: 54px;
}

#mainNav .nav-link {
  color: #111;
  position: relative;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 1.25rem 0.82rem;
  text-transform: none;
}

#mainNav .nav-link::after {
  position: absolute;
  right: 0.82rem;
  bottom: 1rem;
  left: 0.82rem;
  height: 2px;
  content: "";
  background: var(--mc-primary);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

#mainNav .nav-link.active::after,
#mainNav .nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

#mainNav .nav-admin {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.4rem;
  padding: 0;
  color: #555;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

#mainNav .nav-admin::after {
  display: none;
}

.masthead {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 100vh;
  margin-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.78) 12%, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.8) 92%, #000 100%), url("../assets/img/bg-masthead.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.masthead-content {
  width: min(92vw, 980px);
  color: #fff;
  text-align: center;
}

.masthead-content h1 {
  margin: 0;
  font-family: "Varela Round", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.masthead-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--mc-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.masthead-scroll {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: 1.4rem;
  color: #fff;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.masthead-scroll:hover {
  color: #000;
  background: #fff;
  transform: translateY(3px);
}

.about-section {
  padding-top: 0;
  background: #000;
}

.about-section.bg-light {
  background: linear-gradient(to bottom, #000 0%, #111 48%, #050505 100%) !important;
}

.section-band {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card,
.contact-card {
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  overflow: hidden;
  box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.3);
}

.service-card .card-img-top {
  height: 290px;
  object-fit: cover;
  object-position: top;
}}

.service-card .card-title {
  letter-spacing: 0;
}

.project-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #fff;
  background: var(--mc-panel);
  /*border: 1px solid var(--mc-line);*/
}

.project-panel h1,
.project-panel h2,
.project-panel h3,
.project-panel h4 {
  font-weight: 800;
}

.scroll-photo {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #000;
}

.scroll-photo::before,
.scroll-photo::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 8vw;
  pointer-events: none;
  content: "";
}

.scroll-photo::before {
  left: 0;
  background: linear-gradient(to right, #000, rgba(0, 0, 0, 0));
}

.scroll-photo::after {
  right: 0;
  background: linear-gradient(to left, #000, rgba(0, 0, 0, 0));
}

.scroll-photo-container {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: max-content;
}

.scroll-photo-frame,
.scroll-photo-frame-newspaper {
  flex: 0 0 auto;
  overflow: hidden;
  background: #111;
  border-radius: 0.25rem;
}

.scroll-photo-frame {
  width: 462px;
  height: 310px;
}

.scroll-photo-frame-newspaper {
  width: 252px;
  height: 356px;
}

.scroll-photo-frame img,
.scroll-photo-frame-newspaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.scroll-photo-frame a:hover img,
.scroll-photo-frame-newspaper a:hover img,
.portfolio-tile:hover img {
  opacity: 0.78;
  transform: scale(1.03);
}

.portfolio-section {
  padding-top: 6rem;
  min-height: 70vh;
}

.section-heading h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
}

.section-heading p {
  max-width: 680px;
  margin-inline: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.portfolio-tile {
  position: relative;
  display: block;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  border-radius: 0.25rem;
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-tile:nth-child(5n + 1),
.portfolio-tile:nth-child(5n + 4) {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.portfolio-tile-icon {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  color: #fff;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-tile:hover .portfolio-tile-icon {
  opacity: 1;
  transform: translateY(0);
}

.contact-section {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top, #111 0, #000 56%) !important;
}

.contact-card h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15rem;
}

.contact-card hr {
  max-width: 3rem;
  margin-inline: auto;
  border-color: var(--mc-primary);
  border-width: 0.2rem;
  opacity: 1;
}

.contact-form-section {
  padding-top: 6rem;
  min-height: 70vh;
}

.page-sub .about-section:first-child {
  padding-top: 6rem;
}

.contact-form-wrap {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--mc-panel);
  border: 1px solid var(--mc-line);
}

.form-control,
.form-check-input {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 0.35rem;
}

.contact-form-wrap .form-control {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form-wrap .form-control:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--mc-primary);
  box-shadow: 0 0 0 0.2rem rgba(100, 161, 157, 0.18);
}

.contact-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.footer {
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row {
  overflow: hidden;
  border-radius: 0.25rem;
}

.feature-photo {
  filter: grayscale(0.1);
}

.about-carousel {
  overflow: hidden;
  border-radius: 0.25rem;
  outline: 1px solid var(--mc-line);
}

.about-carousel .carousel-item img {
  max-height: 720px;
  object-fit: cover;
}

.install-panel,
.admin-panel {
  max-width: 860px;
  padding: 2rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
}

.admin-shell {
  min-height: 100vh;
  background: #f3f4f6;
}

.admin-sidebar {
  background: #111;
}

.admin-sidebar a {
  color: rgba(255, 255, 255, 0.76);
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-image-card {
  cursor: grab;
}

.admin-image-card img {
  height: 140px;
  object-fit: cover;
}

.drag-handle {
  cursor: grab;
}

.modal-lightbox .modal-content {
  background: transparent;
  border: 0;
}

.modal-lightbox .modal-dialog {
  max-width: min(94vw, 1180px);
}

.modal-lightbox img {
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.2rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  color: #fff;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 991.98px) {
  .portfolio-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .portfolio-tile {
    grid-column: span 3;
  }

  .portfolio-tile:nth-child(5n + 1),
  .portfolio-tile:nth-child(5n + 4) {
    grid-column: span 6;
  }
}

@media (max-width: 767.98px) {
  .masthead {
    min-height: 82vh;
  }

  #mainNav .nav-link {
    padding: 0.75rem 0;
  }

  #mainNav .nav-link::after {
    right: auto;
    bottom: 0.4rem;
    left: 0;
    width: 2rem;
  }

  #mainNav .nav-admin {
    width: 2.4rem;
    margin: 0.5rem 0 0;
  }

  .scroll-photo-frame {
    width: 78vw;
    height: 58vw;
    max-height: 310px;
  }

  .scroll-photo-frame-newspaper {
    width: 58vw;
    height: 82vw;
    max-height: 356px;
  }

  .project-panel,
  .contact-form-wrap {
    padding: 1.25rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-tile,
  .portfolio-tile:nth-child(5n + 1),
  .portfolio-tile:nth-child(5n + 4) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .lightbox-nav {
    width: 2.45rem;
    height: 2.45rem;
  }
}
